[PATCH] jscript: Avoid crash when calling stringify() with no arguments.

Jacek Caban jacek at codeweavers.com
Fri May 4 15:08:20 CDT 2018


Hi Zebediah,

On 05/04/2018 06:32 AM, Zebediah Figura wrote:
> +    if(!argc) {
> +        *r = jsval_undefined();


You need to check r for NULL here. Otherwise a call that doesn't use
return value (like ;JSON.stringify();) will crash.


Thanks,

Jacek




More information about the wine-devel mailing list