- Notifications
You must be signed in to change notification settings - Fork101
Tags: ccxvii/mujs
Tags
1.2.0
Add JS_VERSION_MAJOR/MINOR/PATCH defines to mujs.hA macro JS_CHECKVERSION(major, minor, patch) can be used to test theversion if your code depends on API features added in a given version.#if JS_CHECKVERSION(1, 2, 0) ... use new API ...#else ... don't use new API ...#endif
1.1.2
Fix use-after-free in regexp source property access.The underlying string of the "source" property of a regular expressionobject can be freed if the regexp is garbage collected.This could lead to a use-after-free, because the accessor incorrectlyassumed that the regexp source was an interned (thus never freed) string.Fix this by calling js_pushstring instead of the faster but unsafejs_pushliteral.Many thanks to Connor Nelson for spotting this!
PreviousNext