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

bitpay / bitcore-lib / 387 / 1
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 03 May 2018 05:09AM UTC
Files 46
Run time 1s
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

03 May 2018 05:05AM UTC coverage: 97.552% (-0.04%) from 97.591%
387.1

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%)

5022 of 5148 relevant lines covered (97.55%)

981.71 hits per line

Source Files on job 387.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 365
  • Travis Job 387.1
  • a07264b3 on github
  • Prev Job for on master (#366.1)
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

© 2026 Coveralls, Inc