Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4609

uninitialized read in SDK_API_HttpTxnTransform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.0.0
    • Tests
    • None

    Description

      Valgrind says:

      ==32449== Thread 4 [ET_NET 2]:
      ==32449== Conditional jump or move depends on uninitialised value(s)
      ==32449==    at 0x4C30C9E: __strstr_sse42 (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==32449==    by 0x4EF5B1: transform_hook_handler(tsapi_cont*, TSEvent, void*) (InkAPITest.cc:6818)
      ==32449==    by 0x4B3139: INKContInternal::handle_event(int, void*) (InkAPI.cc:1012)
      ==32449==    by 0x6D9E32: EThread::process_event(Event*, int) (I_Continuation.h:153)
      ==32449==    by 0x6DA321: EThread::execute() (UnixEThread.cc:230)
      ==32449==    by 0x6D9643: spawn_thread_internal(void*) (Thread.cc:84)
      ==32449==    by 0x6C18DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
      ==32449==    by 0x79AFCEC: clone (in /usr/lib64/libc-2.17.so)
      ==32449==
      

      The problem is an off-by one NUL terminating the response buffer in synclient_txn_read_response.

      Attachments

        Issue Links

          Activity

            People

              jamespeach James Peach
              jamespeach James Peach
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: