New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NETSTAT] Fixes coverity #1477187 "Double free" #4069
Conversation
Hello, To change this for future PR's, you can update it for globally (for the system):
Or just for the current repository:
Regards, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was wrongly added by b695971.
Within the current ShowTcpTable function logic, tcpTable would be freed twice. The bug was introduced in b695971. Remove the second tcpTable free and fix coverity #1477187. CORE-17831
0.4.15-dev-6256-g 8ef47d2 [NETSTAT] Optimize a bit (#5405) partially 0.4.15-dev-6245-g 5ee97b9 [NETSTAT] -b flag implies -o flag on Windows XP/2003. CORE-19006 (#5377) partially 0.4.15-dev-6211-g 40864bc [NETSTAT] Fix crash when parsing the protocol CORE-19005 (#5363) 0.4.15-dev-3338-g 0e75fc9 [NETSTAT] Fix coverity #1477187 "Double free" (#4069) CORE-17831 [I ported this double-free-fix earlier already into releases/0.4.13 & releases/0.4.14 and it didn't affect any older releases than that] partially 0.4.14-dev-479-g 1fa2780 [NETSTAT] Fix output formats 0.4.13-dev-584-g 5e10c4e [NETSTAT] ShowUdpTable(): Fix "tcp" copypasta (#1699) partially 0.4.13-dev-579-g b695971 [NETSTAT] Simplify some code partially 0.4.13-dev-578-g ab7dc56 [NETSTAT] Formatting partially 0.4.13-dev-519-g dda5ec4 [NETSTAT] Simplify DoFormatMessage() (just the changed retval)
0.4.15-dev-6256-g 8ef47d2 [NETSTAT] Optimize a bit (#5405) partially 0.4.15-dev-6245-g 5ee97b9 [NETSTAT] -b flag implies -o flag on Windows XP/2003. CORE-19006 (#5377) partially 0.4.15-dev-6211-g 40864bc [NETSTAT] Fix crash when parsing the protocol CORE-19005 (#5363) 0.4.15-dev-3338-g 0e75fc9 [NETSTAT] Fix coverity #1477187 "Double free" (#4069) CORE-17831 [I ported this double-free-fix earlier already into releases/0.4.13 & releases/0.4.14 and it didn't affect any older releases than that] partially 0.4.14-dev-479-g 1fa2780 [NETSTAT] Fix output formats 0.4.13-dev-584-g 5e10c4e [NETSTAT] ShowUdpTable(): Fix "tcp" copypasta (#1699) partially 0.4.13-dev-579-g b695971 [NETSTAT] Simplify some code partially 0.4.13-dev-578-g ab7dc56 [NETSTAT] Formatting partially 0.4.13-dev-519-g dda5ec4 [NETSTAT] Simplify DoFormatMessage() (just the changed retval)
0.4.15-dev-6256-g 8ef47d2 [NETSTAT] Optimize a bit (#5405) partially 0.4.15-dev-6245-g 5ee97b9 [NETSTAT] -b flag implies -o flag on Windows XP/2003. CORE-19006 (#5377) partially 0.4.15-dev-6211-g 40864bc [NETSTAT] Fix crash when parsing the protocol CORE-19005 (#5363) 0.4.15-dev-3338-g 0e75fc9 [NETSTAT] Fix coverity #1477187 "Double free" (#4069) CORE-17831 [I ported this double-free-fix earlier already into releases/0.4.13 & releases/0.4.14 and it didn't affect any older releases than that] partially 0.4.14-dev-479-g 1fa2780 [NETSTAT] Fix output formats 0.4.13-dev-584-g 5e10c4e [NETSTAT] ShowUdpTable(): Fix "tcp" copypasta (#1699) partially 0.4.13-dev-579-g b695971 [NETSTAT] Simplify some code partially 0.4.13-dev-578-g ab7dc56 [NETSTAT] Formatting partially 0.4.13-dev-519-g dda5ec4 [NETSTAT] Simplify DoFormatMessage() (just the changed retval) 0.4.11-dev-820-g 29c883e [NETSTAT] Add support for displaying UDP connections owning process 0.4.11-dev-814-g 2b55073 [NETSTAT] Add support for displaying TCP connections owning process
0.4.15-dev-6256-g 8ef47d2 [NETSTAT] Optimize a bit (#5405) partially 0.4.15-dev-6245-g 5ee97b9 [NETSTAT] -b flag implies -o flag on Windows XP/2003. CORE-19006 (#5377) partially 0.4.15-dev-6211-g 40864bc [NETSTAT] Fix crash when parsing the protocol CORE-19005 (#5363) 0.4.15-dev-3338-g 0e75fc9 [NETSTAT] Fix coverity #1477187 "Double free" (#4069) CORE-17831 [I ported this double-free-fix earlier already into releases/0.4.13 & releases/0.4.14 and it didn't affect any older releases than that] partially 0.4.14-dev-479-g 1fa2780 [NETSTAT] Fix output formats 0.4.13-dev-584-g 5e10c4e [NETSTAT] ShowUdpTable(): Fix "tcp" copypasta (#1699) partially 0.4.13-dev-579-g b695971 [NETSTAT] Simplify some code partially 0.4.13-dev-578-g ab7dc56 [NETSTAT] Formatting partially 0.4.13-dev-519-g dda5ec4 [NETSTAT] Simplify DoFormatMessage() (just the changed retval) 0.4.11-dev-820-g 29c883e [NETSTAT] Add support for displaying UDP connections owning process 0.4.11-dev-814-g 2b55073 [NETSTAT] Add support for displaying TCP connections owning process
0.4.15-dev-6256-g 8ef47d2 [NETSTAT] Optimize a bit (#5405) partially 0.4.15-dev-6245-g 5ee97b9 [NETSTAT] -b flag implies -o flag on Windows XP/2003. CORE-19006 (#5377) partially 0.4.15-dev-6211-g 40864bc [NETSTAT] Fix crash when parsing the protocol CORE-19005 (#5363) 0.4.15-dev-3338-g 0e75fc9 [NETSTAT] Fix coverity #1477187 "Double free" (#4069) CORE-17831 [I ported this double-free-fix earlier already into releases/0.4.13 & releases/0.4.14 and it didn't affect any older releases than that] partially 0.4.14-dev-479-g 1fa2780 [NETSTAT] Fix output formats 0.4.13-dev-584-g 5e10c4e [NETSTAT] ShowUdpTable(): Fix "tcp" copypasta (#1699) partially 0.4.13-dev-579-g b695971 [NETSTAT] Simplify some code partially 0.4.13-dev-578-g ab7dc56 [NETSTAT] Formatting partially 0.4.13-dev-519-g dda5ec4 [NETSTAT] Simplify DoFormatMessage() (just the changed retval) 0.4.11-dev-820-g 29c883e [NETSTAT] Add support for displaying UDP connections owning process 0.4.11-dev-814-g 2b55073 [NETSTAT] Add support for displaying TCP connections owning process
0.4.15-dev-6256-g 8ef47d2 [NETSTAT] Optimize a bit (#5405) partially 0.4.15-dev-6245-g 5ee97b9 [NETSTAT] -b flag implies -o flag on Windows XP/2003. CORE-19006 (#5377) partially 0.4.15-dev-6211-g 40864bc [NETSTAT] Fix crash when parsing the protocol CORE-19005 (#5363) 0.4.15-dev-3338-g 0e75fc9 [NETSTAT] Fix coverity #1477187 "Double free" (#4069) CORE-17831 [I ported this double-free-fix earlier already into releases/0.4.13 & releases/0.4.14 and it didn't affect any older releases than that] partially 0.4.14-dev-479-g 1fa2780 [NETSTAT] Fix output formats 0.4.13-dev-584-g 5e10c4e [NETSTAT] ShowUdpTable(): Fix "tcp" copypasta (#1699) partially 0.4.13-dev-579-g b695971 [NETSTAT] Simplify some code partially 0.4.13-dev-578-g ab7dc56 [NETSTAT] Formatting partially 0.4.13-dev-519-g dda5ec4 [NETSTAT] Simplify DoFormatMessage() (just the changed retval) 0.4.11-dev-820-g 29c883e [NETSTAT] Add support for displaying UDP connections owning process 0.4.11-dev-814-g 2b55073 [NETSTAT] Add support for displaying TCP connections owning process
Within the current ShowTcpTable function logic, tcpTable would be freed twice. This pull request removes the second tcpTable free and should fix coverity #1477187.
JIRA issue: CORE-17831