Skip to content
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

It exists a buffer overflow when use wbook_addworksheet() #9

Open
fantasyoung opened this issue Dec 19, 2018 · 1 comment
Open

It exists a buffer overflow when use wbook_addworksheet() #9

fantasyoung opened this issue Dec 19, 2018 · 1 comment

Comments

@fantasyoung
Copy link

Description

When specify the second parameter ,it will be buffer overflow

My test program

example1.zip

Command and argument

gcc -fsanitize=address -ggdb -o exampletest example1.c ../src/*.c -I ../include/

Crash Information

The output of exampletest with address sanitizer enabled

ASAN:SIGSEGV
=================================================================
==81551==ERROR: AddressSanitizer: SEGV on unknown address 0x000000410fff (pc 0x00000040b77a bp 0x7fff3f8f7ce0 sp 0x7fff3f8f7cb0 T0)
    #0 0x40b779 in wbook_addworksheet ../src/workbook.c:123
    #1 0x401248 in main /home/wind/libexcel/libexcel-master/tests/example1.c:31
    #2 0x7ff81e38c82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #3 0x401148 in _start (/home/wind/libexcel/libexcel-master/tests/exampletest+0x401148)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ../src/workbook.c:123 wbook_addworksheet
==81551==ABORTING

CREDIT

pu!m,Huawei Weiran Labs

@abergmann
Copy link

CVE-2018-20304 was assigned to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants