Project

General

Profile

Actions

Bug #2951

closed

valgrind warnings in ftp

Added by Victor Julien over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

==18605== HEAP SUMMARY:
==18605==     in use at exit: 35,808 bytes in 447 blocks
==18605==   total heap usage: 25,366,925 allocs, 25,366,478 frees, 2,506,428,126 bytes allocated
==18605== 
==18605== Searching for pointers to 447 not-freed blocks
==18605== Checked 421,360 bytes
==18605== 
==18605== LEAK SUMMARY:
==18605==    definitely lost: 0 bytes in 0 blocks
==18605==    indirectly lost: 0 bytes in 0 blocks
==18605==      possibly lost: 0 bytes in 0 blocks
==18605==    still reachable: 35,808 bytes in 447 blocks
==18605==         suppressed: 0 bytes in 0 blocks
==18605== Reachable blocks (those to which a pointer was found) are not shown.
==18605== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==18605== 
==18605== Use --track-origins=yes to see where uninitialised values come from
==18605== ERROR SUMMARY: 56 errors from 15 contexts (suppressed: 0 from 0)
==18605== 
==18605== 1 errors in context 1 of 15:
==18605== Thread 27 W#25:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x1796A9: FTPParseRequest (app-layer-ftp.c:507)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33C513: HandleEstablishedPacketToClient (stream-tcp.c:2375)
==18605==    by 0x33D0A2: StreamTcpPacketStateEstablished (stream-tcp.c:2612)
==18605==    by 0x3446CF: StreamTcpStateDispatch (stream-tcp.c:4617)
==18605==    by 0x344E5D: StreamTcpPacket (stream-tcp.c:4798)
==18605==    by 0x3457AC: StreamTcp (stream-tcp.c:5134)
==18605== 
==18605== 
==18605== 1 errors in context 2 of 15:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x1799D9: FTPParseResponse (app-layer-ftp.c:621)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605==    by 0x3446CF: StreamTcpStateDispatch (stream-tcp.c:4617)
==18605==    by 0x344E5D: StreamTcpPacket (stream-tcp.c:4798)
==18605==    by 0x3457AC: StreamTcp (stream-tcp.c:5134)
==18605== 
==18605== 
==18605== 1 errors in context 3 of 15:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x179384: ftp_validate_port (app-layer-ftp.c:385)
==18605==    by 0x1794CB: FTPGetV4PortNumber (app-layer-ftp.c:436)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605==    by 0x3446CF: StreamTcpStateDispatch (stream-tcp.c:4617)
==18605== 
==18605== 
==18605== 1 errors in context 4 of 15:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x17937B: ftp_validate_port (app-layer-ftp.c:385)
==18605==    by 0x1794CB: FTPGetV4PortNumber (app-layer-ftp.c:436)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605==    by 0x3446CF: StreamTcpStateDispatch (stream-tcp.c:4617)
==18605== 
==18605== 
==18605== 1 errors in context 5 of 15:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x53396DB: ____strtol_l_internal (strtol_l.c:490)
==18605==    by 0x53352CF: atoi (atoi.c:27)
==18605==    by 0x17946D: FTPGetV4PortNumber (app-layer-ftp.c:430)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605== 
==18605== 
==18605== 1 errors in context 6 of 15:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x53394D4: ____strtol_l_internal (strtol_l.c:464)
==18605==    by 0x53352CF: atoi (atoi.c:27)
==18605==    by 0x17946D: FTPGetV4PortNumber (app-layer-ftp.c:430)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605== 
==18605== 
==18605== 2 errors in context 7 of 15:
==18605== Thread 6 W#04:
==18605== Use of uninitialised value of size 8
==18605==    at 0x53394C7: ____strtol_l_internal (strtol_l.c:461)
==18605==    by 0x53352CF: atoi (atoi.c:27)
==18605==    by 0x17946D: FTPGetV4PortNumber (app-layer-ftp.c:430)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605== 
==18605== 
==18605== 3 errors in context 8 of 15:
==18605== Thread 27 W#25:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x5339480: ____strtol_l_internal (strtol_l.c:467)
==18605==    by 0x53352CF: atoi (atoi.c:27)
==18605==    by 0x17946D: FTPGetV4PortNumber (app-layer-ftp.c:430)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605== 
==18605== 
==18605== 3 errors in context 9 of 15:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x53394D9: ____strtol_l_internal (strtol_l.c:467)
==18605==    by 0x53352CF: atoi (atoi.c:27)
==18605==    by 0x17946D: FTPGetV4PortNumber (app-layer-ftp.c:430)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605== 
==18605== 
==18605== 4 errors in context 10 of 15:
==18605== Thread 24 W#22:
==18605== Use of uninitialised value of size 8
==18605==    at 0x53394BF: ____strtol_l_internal (strtol_l.c:460)
==18605==    by 0x53352CF: atoi (atoi.c:27)
==18605==    by 0x17946D: FTPGetV4PortNumber (app-layer-ftp.c:430)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605== 
==18605== 
==18605== 4 errors in context 11 of 15:
==18605== Thread 27 W#25:
==18605== Invalid read of size 1
==18605==    at 0x533949B: ____strtol_l_internal (strtol_l.c:432)
==18605==    by 0x53352CF: atoi (atoi.c:27)
==18605==    by 0x17946D: FTPGetV4PortNumber (app-layer-ftp.c:430)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605==  Address 0x1fd6aeb7 is 0 bytes after a block of size 23 alloc'd
==18605==    at 0x483867F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==18605==    by 0x483ADB7: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==18605==    by 0x178A78: FTPRealloc (app-layer-ftp.c:173)
==18605==    by 0x1795ED: FTPParseRequest (app-layer-ftp.c:481)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33C513: HandleEstablishedPacketToClient (stream-tcp.c:2375)
==18605==    by 0x33D0A2: StreamTcpPacketStateEstablished (stream-tcp.c:2612)
==18605== 
==18605== 
==18605== 5 errors in context 12 of 15:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x53394B0: ____strtol_l_internal (strtol_l.c:436)
==18605==    by 0x53352CF: atoi (atoi.c:27)
==18605==    by 0x17946D: FTPGetV4PortNumber (app-layer-ftp.c:430)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605== 
==18605== 
==18605== 8 errors in context 13 of 15:
==18605== Thread 11 W#09:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x177A6C: AppLayerExpectationHandle (app-layer-expectation.c:296)
==18605==    by 0x137CD4: AppLayerProtoDetectPEGetProto (app-layer-detect-proto.c:442)
==18605==    by 0x13AF6C: AppLayerProtoDetectGetProto (app-layer-detect-proto.c:1529)
==18605==    by 0x12D1E2: TCPProtoDetect (app-layer.c:328)
==18605==    by 0x12D961: AppLayerHandleTCPData (app-layer.c:601)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33C513: HandleEstablishedPacketToClient (stream-tcp.c:2375)
==18605==    by 0x33D0A2: StreamTcpPacketStateEstablished (stream-tcp.c:2612)
==18605==    by 0x3446CF: StreamTcpStateDispatch (stream-tcp.c:4617)
==18605== 
==18605== 
==18605== 8 errors in context 14 of 15:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x177A57: AppLayerExpectationHandle (app-layer-expectation.c:295)
==18605==    by 0x137CD4: AppLayerProtoDetectPEGetProto (app-layer-detect-proto.c:442)
==18605==    by 0x13AF6C: AppLayerProtoDetectGetProto (app-layer-detect-proto.c:1529)
==18605==    by 0x12D1E2: TCPProtoDetect (app-layer.c:328)
==18605==    by 0x12D961: AppLayerHandleTCPData (app-layer.c:601)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33C513: HandleEstablishedPacketToClient (stream-tcp.c:2375)
==18605==    by 0x33D0A2: StreamTcpPacketStateEstablished (stream-tcp.c:2612)
==18605==    by 0x3446CF: StreamTcpStateDispatch (stream-tcp.c:4617)
==18605== 
==18605== 
==18605== 13 errors in context 15 of 15:
==18605== Thread 27 W#25:
==18605== Conditional jump or move depends on uninitialised value(s)
==18605==    at 0x53394A7: ____strtol_l_internal (strtol_l.c:434)
==18605==    by 0x53352CF: atoi (atoi.c:27)
==18605==    by 0x17946D: FTPGetV4PortNumber (app-layer-ftp.c:430)
==18605==    by 0x1799CF: FTPParseResponse (app-layer-ftp.c:620)
==18605==    by 0x18B208: AppLayerParserParse (app-layer-parser.c:1187)
==18605==    by 0x12DABA: AppLayerHandleTCPData (app-layer.c:646)
==18605==    by 0x34D494: ReassembleUpdateAppLayer (stream-tcp-reassemble.c:1070)
==18605==    by 0x34D65A: StreamTcpReassembleAppLayer (stream-tcp-reassemble.c:1140)
==18605==    by 0x34E80F: StreamTcpReassembleHandleSegmentUpdateACK (stream-tcp-reassemble.c:1706)
==18605==    by 0x34E93E: StreamTcpReassembleHandleSegment (stream-tcp-reassemble.c:1749)
==18605==    by 0x33BD14: HandleEstablishedPacketToServer (stream-tcp.c:2224)
==18605==    by 0x33D058: StreamTcpPacketStateEstablished (stream-tcp.c:2598)
==18605== 
==18605== ERROR SUMMARY: 56 errors from 15 contexts (suppressed: 0 from 0)
ERROR: Job failed: exit code 1

Actions

Also available in: Atom PDF