NytroRST / NetRipper

NetRipper - Smart traffic sniffing for penetration testers
GNU General Public License v3.0
1.35k stars 317 forks source link

fixed from PVS-Studio #11

Closed ip-gpu closed 7 years ago

ip-gpu commented 7 years ago

I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug, found using PVS-Studio. Warnings: V547 Expression 'dwHashValue == 0x534C0AB8' is always true. reflectiveloader.cpp 242 V668 There is no sense in testing the 'pSections' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. process.cpp 133 V773 The function was exited without releasing the 'pSections' pointer. A memory leak is possible. process.cpp 153

NytroRST commented 7 years ago

Awesome, thank you!