js-ipfs potentially leaking sprintf and vsprintf to global scope?

Created on 22 Jan 2019  Â·  7Comments  Â·  Source: ipfs/js-ipfs

  • Version: 0.34.2
  • Platform: Node.js
  • Subsystem: Automated tests

Type: Bug

Severity: Medium

Description:

When running the automated tests for https://github.com/orbitdb/ipfs-log,

Steps to reproduce the error:

git clone https://github.com/orbitdb/ipfs-log
glt checkout feat/js-ipfs-0.34

Then remove comment out line 17 in test/browser/index.html

// mocha.setup({globals: ['sprintf', 'vsprintf']});

Then run the following command

make rebuild

It should result in a global leak error:

1) Entry - Persistency (js-ipfs)
      "before all" hook:
    Error: global leaks detected: sprintf, vsprintf
P3 dieasy kinbug

All 7 comments

@alanshaw et al, any updates on this? I'd love to get ipfs-log up to 0.34

Looks like this was fixed in sprintf-js v1.1.1 and it's used in ip-address which currently depends on the previous version:

└─┬ [email protected]
  └─┬ [email protected]
    └── [email protected] 

When ip-address is updated this should be resolved (assuming they release a minor or patch version).

I'm going to close this as there's nothing more we can do here and this should resolve itself in time.

Thanks @alanshaw

Also created an issue with ip-address https://github.com/beaugunderson/ip-address/issues/82

This was just closed https://github.com/beaugunderson/ip-address/issues/82 and ip-address is npm published to 5.9.0!

Re-open?

Re-open?

?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daviddias picture daviddias  Â·  3Comments

daviddias picture daviddias  Â·  4Comments

gitGksgk picture gitGksgk  Â·  3Comments

pedrouid picture pedrouid  Â·  3Comments

Ntmf picture Ntmf  Â·  4Comments