JS: add a getMaybePromisified predicate to API-graphs, and use it to model child_process#6472
Conversation
5abf1fb to
4b16cc3
Compare
child_process|
After grokking through this change to API graphs, I'm a little hesitant to go along with it. The main issue is that the monomorphic API use assumption will now kick in whenever a function is promisified. So if the But I also think the change may have been overkill to begin with, and we need to be clear about what problem it's meant to fix. The way I see it, the We could make For the library model, there isn't much difference between |
…odel `child_process`
That sounds like a good idea. I've just added a |


Recognizes the sink for CVE-2021-29300.
Recognizing the new sink just required using API-graphs.
But recognizing existing sinks using API-graphs required a
promisifiedlabel in API-graphs.So I generalized the
promisifiedpart of API-graphs a bit.No change in alerts.
And a performance evaluation on the security suite looks fine.