/ View Ticket
DEMO | DOWNLOAD | DEPLOY | SEARCH
Login
Ticket UUID: a3026a7c06e0f41af461aa0bc2f7a7e886209390
Title: Nullpointer dereference in jsi_DumpFunctions
Status: Closed Type: Code_Defect
Severity: Critical Priority: Immediate
Subsystem: Javascript Resolution: Fixed
Last Modified: 2018-09-11 23:13:24
Version Found In: 2.4.83 2.0483
User Comments:
mdominiak added on 2018-09-11 10:38:20:
Testcase:
0in[][0]
(0)()

Result:
Segmentation fault

Stack trace (from valgrind):
==2863== Invalid read of size 1
==2863==    at 0x66292E: jsi_DumpFunctions (jsiEval.c:567)
==2863==    by 0x66292E: jsiEvalFunction (jsiEval.c:761)
==2863==    by 0x66292E: _jsi_evalcode (jsiEval.c:1262)
==2863==    by 0x664898: jsi_evalcode (jsiEval.c:2093)
==2863==    by 0x666959: jsi_evalStrFile (jsiEval.c:2347)
==2863==    by 0x47AEF3: Jsi_Interactive (jsiUtils.c:926)
==2863==    by 0x4701FC: Jsi_Main (jsiInterp.c:674)
==2863==    by 0x426479: main (main.c:43)
==2863==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

pcmacdon added on 2018-09-11 23:13:24:
Fixed in New_Version: [09947dc7db67b28e39103f1f4dce46d9bad6a9af].