The following snippet of code causes a null pointer to be passed as the first argument of JS_GetPropertyStr, causing a null pointer dereference in JS_NewAtomLen
|
q::JS_GetPropertyStr(self.value.context.context, self.value.value, cname.as_ptr()) |
use quick_js::Context;
fn main() {
let context = Context::new().unwrap();
context.eval(r#"
(async function() {
await new Promise((r,j)=>{for(let i = 0; i < 20; i++);})
})()
"#).unwrap();
}
The following snippet of code causes a null pointer to be passed as the first argument of
JS_GetPropertyStr, causing a null pointer dereference inJS_NewAtomLenquickjs-rs/src/bindings/value.rs
Line 427 in 941b361