xsscx / macos-research

Welcome to Hoyt's macOS Fuzzing & Code Repo. Contribute Code or Open an Issue or Discussion.
https://srd.cx
GNU General Public License v3.0
38 stars 2 forks source link

iOSOnMac | XNU Image Fuzzer | xnuimagefuzzer.m | Leaks & Garbage Values Report | scan-build | #5

Closed xsscx closed 7 months ago

xsscx commented 7 months ago

scan-build report for https://github.com/xsscx/macos-research/commit/0ccd32653428dc62c1e50f79207cf67a5a99d799

Garbage Values

./xnuimagefuzzer.m:240:9 The left operand of '>=' is a garbage value
./xnuimagefuzzer.m:255:55 The right operand of '-' is a garbage value
./xnuimagefuzzer.m:260:68 The left operand of '+' is a garbage value
./xnuimagefuzzer.m:274:68 The left operand of '+' is a garbage value
./xnuimagefuzzer.m:282:80 The left operand of '+' is a garbage value

Leaks

/Users/xss/Developer/onmac/onmac/main.m:491:5 Potential leak of an object of type 'CGColorSpaceRef _Nullable'
/Users/xss/Developer/onmac/onmac/main.m:616:5 Potential leak of an object of type 'CGColorSpaceRef _Nullable'
/Users/xss/Developer/onmac/onmac/main.m:673:5 Potential leak of an object of type 'CGColorSpaceRef _Nullable'
/Users/xss/Developer/onmac/onmac/main.m:735:5 Potential leak of an object of type 'CGColorSpaceRef _Nullable'
/Users/xss/Developer/onmac/onmac/main.m:900:5 Potential leak of an object of type 'CGColorSpaceRef _Nullable'
/Users/xss/Developer/onmac/onmac/main.m:959:5 Potential leak of an object of type 'CGColorSpaceRef _Nullable'
/Users/xss/Developer/onmac/onmac/main.m:961:9 Potential leak of memory pointed to by 'rawData'
/Users/xss/Developer/onmac/onmac/main.m:1016:5 Potential leak of an object of type 'CGColorSpaceRef _Nullable'
/Users/xss/Developer/onmac/onmac/main.m:1073:5 Potential leak of an object of type 'CGColorSpaceRef _Nullable'
xsscx commented 7 months ago

Merged Upstream xnuimagefuzzer 1.2.2 of 28 FEB 2024 into this Project