DelSkayn / rquickjs

High level bindings to the quickjs javascript engine
MIT License
434 stars 59 forks source link

Fix a bug where `throw_(type,internal,..etc)` would feed into printf #247

Closed DelSkayn closed 5 months ago

DelSkayn commented 5 months ago

It turns out that JS_ThrowTypeError and other similar methods don't take a string but also a vararg and actually call printf directly. Causing any c format specifier in an error message to be replaced with a value read from the process memory.

This PR fixes this bug.