[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] NULL pointer dereference in create.c:511:start_private_header(

From: x ksi
Subject: [Bug-tar] NULL pointer dereference in create.c:511:start_private_header().
Date: Thu, 20 Dec 2018 21:11:16 +1100

Hi All,

I'd like to report a defect in tar v1.30.

Execution of the following command will cause a NULL pointer dereference:

-- cut --
$ /home/s1m0n/tar/tar-asan/src/tar --update -f ./emptyfile
==9757==ERROR: AddressSanitizer: SEGV on unknown address
0x000000000000 (pc 0x7f5d999ab2ec bp 0x7ffdde53add0 sp 0x7ffdde53a558
==9757==The signal is caused by a WRITE memory access.
==9757==Hint: address points to the zero page.
    #0 0x7f5d999ab2eb  (/lib/x86_64-linux-gnu/libc.so.6+0x15b2eb)
    #1 0x7f5d99aa3d45 in __interceptor_memset
    #2 0x557d5884fb22 in memset
    #3 0x557d5884fb22 in start_private_header
    #4 0x557d58892229 in xheader_write
    #5 0x557d58892877 in xheader_write_global
    #6 0x557d5882d02f in buffer_write_global_xheader
    #7 0x557d5891b6af in update_archive
    #8 0x557d58825304 in main /home/s1m0n/tar/tar-asan/src/tar.c:2716
    #9 0x7f5d99872b16 in __libc_start_main
    #10 0x557d5882aaa9 in _start (/home/s1m0n/tar/tar-asan/src/tar+0x9eaa9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x15b2eb)
-- cut --

Please let me know if you have any questions.

Filip Palian

reply via email to

[Prev in Thread] Current Thread [Next in Thread]