Project: Shell
Report by: Chinmay Kulkarni, Team Blue
Vulnerability Type: Memory Leak (Potential leak of memory pointed to by "newCmd")
Exploitability: Yes.
Analysis method used: Scan-build
Vulnerability Description:
Warning of potential memory leak is caused by not de-allocating memory assigned to the newCmd char pointer(Error Location is shown in the screenshot above). Not doing the deallocation can lead to memory issues which will lead to program crashes at some later stages.
Possible Solution:
When the memory allocated to newCmd char pointer is de-allocated the warning of potential memory leak got solved.
Project: Shell Report by: Chinmay Kulkarni, Team Blue
Vulnerability Type: Memory Leak (Potential leak of memory pointed to by "newCmd") Exploitability: Yes.
Analysis method used: Scan-build
Vulnerability Description: Warning of potential memory leak is caused by not de-allocating memory assigned to the newCmd char pointer(Error Location is shown in the screenshot above). Not doing the deallocation can lead to memory issues which will lead to program crashes at some later stages.
Possible Solution:
When the memory allocated to newCmd char pointer is de-allocated the warning of potential memory leak got solved.