• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitpay / bitcore-lib / 387
98%

Build:
DEFAULT BRANCH: master
Ran 03 May 2018 05:07AM UTC
Jobs 2
Files 46
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
387

Pull #238

travis-ci

web-flow
Don't mutate the elliptic curve prototype with get* additions

Point's prototype is set to the prototype of ec('secp256k1').curve.point(), which means mutation to it is shared across users of 'elliptic' via the in-memory representation of those objects.

This is not generally a problem, for example, with `validate` it's a simple set, so the greatest risk is that it will be directly overwritten.

But in the case of `getX` and `getY`, both methods are overwritten with others that depend on the prior implementation as stored in `_get*`. If this happens twice, then the implementation of `_getX` is replaced with something that depends on a call to `_getX`, and the callers is stuck in an infinite loop.
Pull Request #238: Don't mutate the elliptic curve prototype with get* additions

2203 of 2343 branches covered (94.02%)

4 of 4 new or added lines in 1 file covered. (100.0%)

5022 of 5148 relevant lines covered (97.55%)

1963.42 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
lib/crypto/point.js
Jobs
ID Job ID Ran Files Coverage
1 387.1 03 May 2018 05:09AM UTC 0
97.55
Travis Job 387.1
2 387.2 03 May 2018 05:07AM UTC 0
97.55
Travis Job 387.2
Source Files on build 387
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #387
  • Pull Request #238
  • PR Base - master (#366)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc