Project: libredwg (libredwg/libredwg), language: c++
Vulnerability instance: libredwg.cve-2020-15807
Sanitizer: address

================= Bug Report (1/3) ==================
## Source: GitHub Issue
## URL: https://github.com/LibreDWG/libredwg/issues/186
## Description:
Issue: LibreDWG/libredwg#186
Title: NULL pointer deference
State: closed
Created by: skyvast404
Created at: 2020-01-14 12:30:37+00:00
Labels: fuzzing

Issue Body:
Hello, I got a NULL pointer deference bug in **0.10.1.2677 and even earlier** by run `dxf2dwg poc -o /dev/null`  
```
==12391==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f9f9b4f3284 bp 0x7ffcfa3b08a0 sp 0x7ffcfa3b0860 T0)
==12391==The signal is caused by a READ memory access.
==12391==Hint: address points to the zero page.
    #0 0x7f9f9b4f3283 in add_MLINESTYLE_lines /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1462
    #1 0x7f9f9b554a23 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5897
    #2 0x7f9f9b564d2d in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7245
    #3 0x7f9f9b56bb16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #4 0x7f9f9a684ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x564a81d20465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f9f99d8fb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x564a81d1f489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1462 in add_MLINESTYLE_lines
==12391==ABORTING

```


Comments:
Comment by rurban on 2020-01-14 12:40:22+00:00:
Can you attach the poc please?

---

Comment by skyvast404 on 2020-01-15 09:47:40+00:00:
[null_pointer.zip](https://github.com/LibreDWG/libredwg/files/4064145/null_pointer.zip)


---

Comment by skyvast404 on 2020-07-20 02:14:44+00:00:
This bug credited by ADLab. 
CVE-2020-15807

Attachments:
https://github.com/LibreDWG/libredwg/files/4064145/null_pointer.zip

================= Bug Report (2/3) ==================
## Source: GitHub Issue
## URL: https://github.com/LibreDWG/libredwg/issues/189
## Description:
Issue: LibreDWG/libredwg#189
Title: Some NULL pointer bugs
State: closed
Created by: skyvast404
Created at: 2020-01-16 11:36:57+00:00
Labels: bug, fuzzing

Issue Body:
Hi, I got some bugs which you can reproduce `dxf2dwg $PoC -o /dev/null` .Thses bugs work on version `0.10.1.2685` and `earlier`.


Comments:
Comment by skyvast404 on 2020-01-16 11:38:11+00:00:
`NULL pointer 1`
==8484==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f92bfd04e1a bp 0x7fffeebf38e0 sp 0x7fffeebf3040 T0)
==8484==The signal is caused by a READ memory access.
==8484==Hint: address points to the zero page.
    #0 0x7f92bfd04e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f92bf75e324 in dxf_header_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:629
    #2 0x7f92bf7e14b6 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7631
    #3 0x7f92be8faee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x55a71107f465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f92be005b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x55a71107e489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 

---

Comment by skyvast404 on 2020-01-16 11:38:53+00:00:
`NULL pointer 2`
==8497==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f57a080a7a4 bp 0x7ffd40d4f840 sp 0x7ffd40d4f800 T0)
==8497==The signal is caused by a READ memory access.
==8497==Hint: address points to the zero page.
    #0 0x7f57a080a7a3 in dxf_thumbnail_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7308
    #1 0x7f57a0810b86 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7707
    #2 0x7f579f929ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #3 0x55ebd787b465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #4 0x7f579f034b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #5 0x55ebd787a489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7308 in dxf_thumbnail_read

---

Comment by skyvast404 on 2020-01-16 11:39:15+00:00:
`NULL pointer 3`

==8503==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f0e8940fe1a bp 0x7fffe85e19a0 sp 0x7fffe85e1100 T0)
==8503==The signal is caused by a READ memory access.
==8503==Hint: address points to the zero page.
    #0 0x7f0e8940fe19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f0e88e6f892 in dxf_classes_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1104
    #2 0x7f0e88eec526 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7645
    #3 0x7f0e88005ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x55c007306465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f0e87710b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x55c007305489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

---

Comment by skyvast404 on 2020-01-16 11:39:34+00:00:
`NULL pointer 4`
==8509==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f1bfc66473d bp 0x7ffdfb3fdf00 sp 0x7ffdfb3fd668 T0)
==8509==The signal is caused by a READ memory access.
==8509==Hint: address points to the zero page.
    #0 0x7f1bfc66473c  (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c)
    #1 0x7f1bfe2314f7 in __interceptor_strncpy (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x944f7)
    #2 0x7f1bfdc50179 in dxf_header_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:616
    #3 0x7f1bfdcd34b6 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7631
    #4 0x7f1bfcdecee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x5648d94ca465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f1bfc4f7b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x5648d94c9489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

---

Comment by skyvast404 on 2020-01-16 11:39:47+00:00:
`NULL pointer 5`
==8523==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fc365ed25a1 bp 0x7ffd807954f0 sp 0x7ffd80794c68 T0)
==8523==The signal is caused by a READ memory access.
==8523==Hint: address points to the zero page.
    #0 0x7fc365ed25a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7fc367a5c57b  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b)
    #2 0x7fc366cc7699 in dynapi_set_helper /home/skyvast/Documents/libredwg-0.10.1.2677/src/gen-dynapi.pl:1686
    #3 0x7fc366cc7fdb in dwg_dynapi_entity_set_value /home/skyvast/Documents/libredwg-0.10.1.2677/src/gen-dynapi.pl:1752
    #4 0x7fc3675301cb in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6318
    #5 0x7fc367537cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #6 0x7fc36754189a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #7 0x7fc36665aee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #8 0x561cd0f1b465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #9 0x7fc365d65b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #10 0x561cd0f1a489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

---

Comment by skyvast404 on 2020-01-16 11:40:03+00:00:
`NULL pointer 6`
==8543==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f92165995a1 bp 0x7ffe88d9fc90 sp 0x7ffe88d9f408 T0)
==8543==The signal is caused by a READ memory access.
==8543==Hint: address points to the zero page.
    #0 0x7f92165995a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7f921812357b  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b)
    #2 0x7f9217bb9f87 in add_xdata /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4116
    #3 0x7f9217bf0665 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5792
    #4 0x7f9217bfecbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #5 0x7f9217c0889a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #6 0x7f9216d21ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #7 0x55d0d84c7465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #8 0x7f921642cb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #9 0x55d0d84c6489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==8543==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:40:18+00:00:
`NULL pointer 7`
==8561==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000058 (pc 0x7fd3b91b6526 bp 0x7ffc77da4f40 sp 0x7ffc77da4ed0 T0)
==8561==The signal is caused by a READ memory access.
==8561==Hint: address points to the zero page.
    #0 0x7fd3b91b6525 in add_MLINE /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4637
    #1 0x7fd3b91e82d4 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5930
    #2 0x7fd3b91f4cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7fd3b91fe89a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7fd3b8317ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55fe57327465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7fd3b7a22b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55fe57326489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4637 in add_MLINE
==8561==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:40:35+00:00:
`NULL pointer 8`
==8575==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f80fcee3e1a bp 0x7fff4599b400 sp 0x7fff4599ab60 T0)
==8575==The signal is caused by a READ memory access.
==8575==Hint: address points to the zero page.
    #0 0x7f80fcee3e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f80fc9b83fa in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6946
    #2 0x7f80fc9c089a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #3 0x7f80fbad9ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x555d43419465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f80fb1e4b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x555d43418489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8575==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:40:49+00:00:
`NULL pointer 9`
==8630==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f1af55cbe1a bp 0x7ffd046d1b40 sp 0x7ffd046d12a0 T0)
==8630==The signal is caused by a READ memory access.
==8630==Hint: address points to the zero page.
    #0 0x7f1af55cbe19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f1af5027e15 in dxf_header_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:808
    #2 0x7f1af50a84b6 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7631
    #3 0x7f1af41c1ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x560f621ec465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f1af38ccb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x560f621eb489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8630==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:41:02+00:00:
`NULL pointer 10`
==8659==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f3adea1ce1a bp 0x7ffeaba29ce0 sp 0x7ffeaba29440 T0)
==8659==The signal is caused by a READ memory access.
==8659==Hint: address points to the zero page.
    #0 0x7f3adea1ce19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f3ade4ef96e in dxf_tables_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6927
    #2 0x7f3ade4f958e in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7651
    #3 0x7f3add612ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x56488b0cf465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f3adcd1db96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x56488b0ce489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8659==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:41:18+00:00:
`NULL pointer 11`
==8667==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fd648396e1a bp 0x7ffd7a3da050 sp 0x7ffd7a3d97b0 T0)
==8667==The signal is caused by a READ memory access.
==8667==Hint: address points to the zero page.
    #0 0x7fd648396e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7fd647e66dec in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6701
    #2 0x7fd647e6cd2d in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7245
    #3 0x7fd647e73b16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #4 0x7fd646f8cee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55e3d59ca465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7fd646697b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55e3d59c9489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8667==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:41:35+00:00:
`NULL pointer 12`
==8676==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f5cfee47e1a bp 0x7ffca4516990 sp 0x7ffca45160f0 T0)
==8676==The signal is caused by a READ memory access.
==8676==Hint: address points to the zero page.
    #0 0x7f5cfee47e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f5cfe91a82c in dxf_tables_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6924
    #2 0x7f5cfe92458e in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7651
    #3 0x7f5cfda3dee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x56417dab5465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f5cfd148b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x56417dab4489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8676==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:41:50+00:00:
`NULL pointer 13`
==8714==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f4f116f3e1a bp 0x7ffd08722470 sp 0x7ffd08721bd0 T0)
==8714==The signal is caused by a READ memory access.
==8714==Hint: address points to the zero page.
    #0 0x7f4f116f3e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f4f1114b911 in dxf_expect_code /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:469
    #2 0x7f4f111d0056 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7614
    #3 0x7f4f102e9ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x555de0bf9465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f4f0f9f4b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x555de0bf8489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8714==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:42:03+00:00:
`NULL pointer 14`
==8724==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f7e5d3b5e1a bp 0x7fff8aacaae0 sp 0x7fff8aaca240 T0)
==8724==The signal is caused by a READ memory access.
==8724==Hint: address points to the zero page.
    #0 0x7f7e5d3b5e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f7e5ce85dec in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6701
    #2 0x7f7e5ce8c320 in dxf_unknownsection_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7281
    #3 0x7f7e5ce92cb3 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7713
    #4 0x7f7e5bfabee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x5585759bd465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f7e5b6b6b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x5585759bc489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8724==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:42:16+00:00:
`NULL pointer 15`
==8729==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f23d9394e1a bp 0x7ffdd52b6000 sp 0x7ffdd52b5760 T0)
==8729==The signal is caused by a READ memory access.
==8729==Hint: address points to the zero page.
    #0 0x7f23d9394e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f23d8e69648 in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7074
    #2 0x7f23d8e7189a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #3 0x7f23d7f8aee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x557261166465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f23d7695b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x557261165489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8729==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:42:30+00:00:
`NULL pointer 16`
==8766==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f125e4ab608 bp 0x7ffc31c12730 sp 0x7ffc31c11e90 T0)
==8766==The signal is caused by a READ memory access.
==8766==Hint: address points to the zero page.
    #0 0x7f125e4ab607  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5b607)
    #1 0x7f125df7838e in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6535
    #2 0x7f125df7ccbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7f125df8689a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7f125d09fee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x555baf598465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f125c7aab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x555baf597489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5b607) 
==8766==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:42:43+00:00:
`NULL pointer 17`
==8794==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f09292f45a1 bp 0x7fff0f9a4440 sp 0x7fff0f9a3bb8 T0)
==8794==The signal is caused by a READ memory access.
==8794==Hint: address points to the zero page.
    #0 0x7f09292f45a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7f092ae7e57b  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b)
    #2 0x7f092a915c04 in add_xdata /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4198
    #3 0x7f092a94b665 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5792
    #4 0x7f092a959cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #5 0x7f092a96389a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #6 0x7f0929a7cee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #7 0x55645ba9f465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #8 0x7f0929187b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #9 0x55645ba9e489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==8794==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:42:59+00:00:
`NULL pointer 18`
==8825==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f3437de7b34 bp 0x7ffde5bc4c00 sp 0x7ffde5bc4b90 T0)
==8825==The signal is caused by a WRITE memory access.
==8825==Hint: address points to the zero page.
    #0 0x7f3437de7b33 in add_MLINE /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4663
    #1 0x7f3437e192d4 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5930
    #2 0x7f3437e25cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7f3437e2f89a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7f3436f48ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55a7bc078465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f3436653b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55a7bc077489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4663 in add_MLINE
==8825==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:43:14+00:00:
`NULL pointer 19`
==8857==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f9864fff73d bp 0x7ffccd2a5070 sp 0x7ffccd2a47d8 T0)
==8857==The signal is caused by a READ memory access.
==8857==Hint: address points to the zero page.
    #0 0x7f9864fff73c  (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c)
    #1 0x7f9866bcc4f7 in __interceptor_strncpy (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x944f7)
    #2 0x7f98666504fa in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5267
    #3 0x7f98666639b4 in dxf_tables_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6841
    #4 0x7f986666e58e in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7651
    #5 0x7f9865787ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #6 0x559c24552465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #7 0x7f9864e92b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #8 0x559c24551489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c) 
==8857==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:43:28+00:00:
`NULL pointer 20`
==8872==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f1569ce7e1a bp 0x7ffecec77a10 sp 0x7ffecec77170 T0)
==8872==The signal is caused by a READ memory access.
==8872==Hint: address points to the zero page.
    #0 0x7f1569ce7e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f15697b7dec in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6701
    #2 0x7f15697b99b4 in dxf_tables_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6841
    #3 0x7f15697c458e in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7651
    #4 0x7f15688ddee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x558ae3ea7465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f1567fe8b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x558ae3ea6489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8872==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:43:40+00:00:
`NULL pointer 21`
==8880==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fb288b115c1 bp 0x7fff0e8b0050 sp 0x7fff0e8affe0 T0)
==8880==The signal is caused by a WRITE memory access.
==8880==Hint: address points to the zero page.
    #0 0x7fb288b115c0 in add_MLINE /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4637
    #1 0x7fb288b432d4 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5930
    #2 0x7fb288b4fcbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7fb288b5989a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7fb287c72ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55e8eb1e6465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7fb28737db96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55e8eb1e5489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4637 in add_MLINE
==8880==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:44:08+00:00:
`NULL pointer 22`
==8887==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7eff6da095a1 bp 0x7ffe8b3b7570 sp 0x7ffe8b3b6ce8 T0)
==8887==The signal is caused by a READ memory access.
==8887==Hint: address points to the zero page.
    #0 0x7eff6da095a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7eff6f59357b  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b)
    #2 0x7eff6f072a4c in dxf_thumbnail_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7326
    #3 0x7eff6f078b86 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7707
    #4 0x7eff6e191ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55f82edc0465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7eff6d89cb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55f82edbf489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==8887==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:44:20+00:00:
`NULL pointer 23`
==8907==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fc3e6a8e5a1 bp 0x7ffc6a0fade0 sp 0x7ffc6a0fa558 T0)
==8907==The signal is caused by a READ memory access.
==8907==Hint: address points to the zero page.
    #0 0x7fc3e6a8e5a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7fc3e863e3de in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x773de)
    #2 0x7fc3e8078578 in array_push /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:420
    #3 0x7fc3e80df1d6 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5250
    #4 0x7fc3e80f3cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #5 0x7fc3e80fd89a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #6 0x7fc3e7216ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #7 0x559a754c2465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #8 0x7fc3e6921b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #9 0x559a754c1489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==8907==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:44:43+00:00:
`NULL pointer 24`
==8931==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f4ed9993284 bp 0x7ffc9536b100 sp 0x7ffc9536b0c0 T0)
==8931==The signal is caused by a READ memory access.
==8931==Hint: address points to the zero page.
    #0 0x7f4ed9993283 in add_MLINESTYLE_lines /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1462
    #1 0x7f4ed99f4a23 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5897
    #2 0x7f4ed9a04d2d in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7245
    #3 0x7f4ed9a0bb16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #4 0x7f4ed8b24ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x56257803d465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f4ed822fb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x56257803c489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1462 in add_MLINESTYLE_lines
==8931==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:44:56+00:00:
`NULL pointer 25`
==8942==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fee8cb93e1a bp 0x7ffcfe4476a0 sp 0x7ffcfe446e00 T0)
==8942==The signal is caused by a READ memory access.
==8942==Hint: address points to the zero page.
    #0 0x7fee8cb93e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7fee8b791647 in dwg_find_table_control /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1517
    #2 0x7fee8b792a15 in dwg_find_tablehandle /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1661
    #3 0x7fee8b792797 in dwg_find_tablehandle_silent /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1634
    #4 0x7fee8c6708ef in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7683
    #5 0x7fee8b789ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #6 0x56384b15b465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #7 0x7fee8ae94b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #8 0x56384b15a489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==8942==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:45:07+00:00:
`NULL pointer 26`
==8960==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f831f60d1f6 bp 0x7ffc478675c0 sp 0x7ffc47867550 T0)
==8960==The signal is caused by a WRITE memory access.
==8960==Hint: address points to the zero page.
    #0 0x7f831f60d1f5 in add_MLINE /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4627
    #1 0x7f831f63f2d4 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5930
    #2 0x7f831f64bcbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7f831f65589a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7f831e76eee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x5583c941c465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f831de79b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x5583c941b489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4627 in add_MLINE
==8960==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:45:16+00:00:
`NULL pointer 27`
==9001==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f92222b773d bp 0x7fff76efd490 sp 0x7fff76efcbf8 T0)
==9001==The signal is caused by a READ memory access.
==9001==Hint: address points to the zero page.
    #0 0x7f92222b773c  (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c)
    #1 0x7f9223e844f7 in __interceptor_strncpy (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x944f7)
    #2 0x7f92239084fa in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5267
    #3 0x7f922391ccbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #4 0x7f922392689a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #5 0x7f9222a3fee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #6 0x562bc370f465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #7 0x7f922214ab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #8 0x562bc370e489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c) 
==9001==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:45:28+00:00:
`NULL pointer 28`
==9032==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f1cbd0db73d bp 0x7ffd71069450 sp 0x7ffd71068bb8 T0)
==9032==The signal is caused by a READ memory access.
==9032==Hint: address points to the zero page.
    #0 0x7f1cbd0db73c  (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c)
    #1 0x7f1cbeca84f7 in __interceptor_strncpy (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x944f7)
    #2 0x7f1cbe737898 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6207
    #3 0x7f1cbe740cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #4 0x7f1cbe74a89a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #5 0x7f1cbd863ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #6 0x558180de3465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #7 0x7f1cbcf6eb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #8 0x558180de2489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c) 
==9032==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:45:39+00:00:
`NULL pointer 29`
==9083==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f7d721985a1 bp 0x7ffd515ae4e0 sp 0x7ffd515adc58 T0)
==9083==The signal is caused by a READ memory access.
==9083==Hint: address points to the zero page.
    #0 0x7f7d721985a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7f7d73d2257b  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b)
    #2 0x7f7d72f8d699 in dynapi_set_helper /home/skyvast/Documents/libredwg-0.10.1.2677/src/gen-dynapi.pl:1686
    #3 0x7f7d72f8dfdb in dwg_dynapi_entity_set_value /home/skyvast/Documents/libredwg-0.10.1.2677/src/gen-dynapi.pl:1752
    #4 0x7f7d737f61cb in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6318
    #5 0x7f7d73801320 in dxf_unknownsection_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7281
    #6 0x7f7d73807cb3 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7713
    #7 0x7f7d72920ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #8 0x55f325629465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #9 0x7f7d7202bb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #10 0x55f325628489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==9083==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:45:54+00:00:
`NULL pointer 30`
==9089==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fd374b36e1a bp 0x7ffecc10acb0 sp 0x7ffecc10a410 T0)
==9089==The signal is caused by a READ memory access.
==9089==Hint: address points to the zero page.
    #0 0x7fd374b36e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7fd374596999 in dxf_classes_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1108
    #2 0x7fd374613526 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7645
    #3 0x7fd37372cee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x563fb4c6a465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7fd372e37b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x563fb4c69489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9089==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:46:05+00:00:
`NULL poiner 31`
==9102==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7eff036b562d bp 0x7fff62d88660 sp 0x7fff62d88620 T0)
==9102==The signal is caused by a READ memory access.
==9102==Hint: address points to the zero page.
    #0 0x7eff036b562c in add_LTYPE_dashes /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1387
    #1 0x7eff037178d8 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5889
    #2 0x7eff03727d2d in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7245
    #3 0x7eff0372eb16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #4 0x7eff02847ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55d3f174b465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7eff01f52b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55d3f174a489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1387 in add_LTYPE_dashes
==9102==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:46:16+00:00:
`NULL pointer 32`
==9112==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fcd6920673d bp 0x7ffe38670a60 sp 0x7ffe386701c8 T0)
==9112==The signal is caused by a READ memory access.
==9112==Hint: address points to the zero page.
    #0 0x7fcd6920673c  (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c)
    #1 0x7fcd6add34f7 in __interceptor_strncpy (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x944f7)
    #2 0x7fcd6a862898 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6207
    #3 0x7fcd6a86ed2d in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7245
    #4 0x7fcd6a875b16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #5 0x7fcd6998eee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #6 0x557d5f7ad465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #7 0x7fcd69099b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #8 0x557d5f7ac489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c) 
==9112==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:46:25+00:00:
`NULL pointer 33`
==9130==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f7be950de1a bp 0x7ffeafabde70 sp 0x7ffeafabd5d0 T0)
==9130==The signal is caused by a READ memory access.
==9130==Hint: address points to the zero page.
    #0 0x7f7be950de19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f7be8fcded3 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5401
    #2 0x7f7be8fe0cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7f7be8fea89a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7f7be8103ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55fb43812465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f7be780eb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55fb43811489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9130==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:46:39+00:00:
`NULL pointer 34`
==9151==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f4b7d322e1a bp 0x7ffe77024920 sp 0x7ffe77024080 T0)
==9151==The signal is caused by a READ memory access.
==9151==Hint: address points to the zero page.
    #0 0x7f4b7d322e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f4b7bf20647 in dwg_find_table_control /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1517
    #2 0x7f4b7bf21a15 in dwg_find_tablehandle /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1661
    #3 0x7f4b7bf21797 in dwg_find_tablehandle_silent /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1634
    #4 0x7f4b7cdfb304 in resolve_postponed_object_refs /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7437
    #5 0x7f4b7cdffd2e in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7719
    #6 0x7f4b7bf18ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #7 0x555b87e02465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #8 0x7f4b7b623b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #9 0x555b87e01489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9151==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:46:49+00:00:
`NULL pointer 35`
==9178==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f1c95effe1a bp 0x7ffd825c5820 sp 0x7ffd825c4f80 T0)
==9178==The signal is caused by a READ memory access.
==9178==Hint: address points to the zero page.
    #0 0x7f1c95effe19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f1c959bfed3 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5401
    #2 0x7f1c959d5d2d in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7245
    #3 0x7f1c959dcb16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #4 0x7f1c94af5ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x5602d27f9465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f1c94200b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x5602d27f8489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9178==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:47:00+00:00:
`NULL pointer 36`
==9184==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fe5d2da45a1 bp 0x7fff2fec35e0 sp 0x7fff2fec2d58 T0)
==9184==The signal is caused by a READ memory access.
==9184==Hint: address points to the zero page.
    #0 0x7fe5d2da45a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7fe5d492e57b  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b)
    #2 0x7fe5d43c4f87 in add_xdata /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4116
    #3 0x7fe5d43fb665 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5792
    #4 0x7fe5d440cd2d in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7245
    #5 0x7fe5d4413b16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #6 0x7fe5d352cee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #7 0x55dba0e25465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #8 0x7fe5d2c37b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #9 0x55dba0e24489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==9184==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:47:12+00:00:
`NULL pointer 37`
==9193==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7feee229ae1a bp 0x7ffc0ad1b0e0 sp 0x7ffc0ad1a840 T0)
==9193==The signal is caused by a READ memory access.
==9193==Hint: address points to the zero page.
    #0 0x7feee229ae19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7feee1d716ae in dxf_unknownsection_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7293
    #2 0x7feee1d77cb3 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7713
    #3 0x7feee0e90ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x55d31b3c7465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7feee059bb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x55d31b3c6489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9193==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:47:24+00:00:
`NULL pointer 38`
==9234==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f0039821e1a bp 0x7ffc67344ba0 sp 0x7ffc67344300 T0)
==9234==The signal is caused by a READ memory access.
==9234==Hint: address points to the zero page.
    #0 0x7f0039821e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f00392e1ed3 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5401
    #2 0x7f00392f8320 in dxf_unknownsection_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7281
    #3 0x7f00392fecb3 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7713
    #4 0x7f0038417ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x5573d9883465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f0037b22b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x5573d9882489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9234==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:47:35+00:00:
`NULL pointer 39`
==9304==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000058 (pc 0x7f00ab18879e bp 0x7ffee2962f20 sp 0x7ffee2962eb0 T0)
==9304==The signal is caused by a READ memory access.
==9304==Hint: address points to the zero page.
    #0 0x7f00ab18879d in add_MLINE /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4645
    #1 0x7f00ab1ba2d4 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5930
    #2 0x7f00ab1c6cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7f00ab1d089a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7f00aa2e9ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x5620d2418465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f00a99f4b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x5620d2417489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4645 in add_MLINE
==9304==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:47:47+00:00:
`NULL pointer 40`
==9315==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fbe9b7b173d bp 0x7ffda0f676a0 sp 0x7ffda0f66e08 T0)
==9315==The signal is caused by a READ memory access.
==9315==Hint: address points to the zero page.
    #0 0x7fbe9b7b173c  (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c)
    #1 0x7fbe9d37e4f7 in __interceptor_strncpy (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x944f7)
    #2 0x7fbe9ce024fa in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5267
    #3 0x7fbe9ce19d2d in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7245
    #4 0x7fbe9ce20b16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #5 0x7fbe9bf39ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #6 0x55c25cc21465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #7 0x7fbe9b644b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #8 0x55c25cc20489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c) 
==9315==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:47:58+00:00:
`NULL pointer 41`
==9320==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f97305345a1 bp 0x7ffec5f016f0 sp 0x7ffec5f00e68 T0)
==9320==The signal is caused by a READ memory access.
==9320==Hint: address points to the zero page.
    #0 0x7f97305345a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7f97320e43de in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x773de)
    #2 0x7f9731b1e578 in array_push /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:420
    #3 0x7f9731b9103c in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6241
    #4 0x7f9731b99cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #5 0x7f9731ba389a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #6 0x7f9730cbcee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #7 0x5595cbd0a465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #8 0x7f97303c7b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #9 0x5595cbd09489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==9320==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:48:09+00:00:
`NULL pointer 42`
==9333==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7ff8e2871e1a bp 0x7ffc628f9a60 sp 0x7ffc628f91c0 T0)
==9333==The signal is caused by a READ memory access.
==9333==Hint: address points to the zero page.
    #0 0x7ff8e2871e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7ff8e2341dec in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6701
    #2 0x7ff8e2344cbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7ff8e234e89a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7ff8e1467ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x5592686f4465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7ff8e0b72b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x5592686f3489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9333==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:48:18+00:00:
`NULL pointer 43`
==9345==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fe9be5d373d bp 0x7fff1f3c54c0 sp 0x7fff1f3c4c28 T0)
==9345==The signal is caused by a READ memory access.
==9345==Hint: address points to the zero page.
    #0 0x7fe9be5d373c  (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c)
    #1 0x7fe9c01a04f7 in __interceptor_strncpy (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x944f7)
    #2 0x7fe9bfc3af26 in dxf_entities_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7151
    #3 0x7fe9bfc42ab2 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7696
    #4 0x7fe9bed5bee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55e9f61d6465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7fe9be466b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55e9f61d5489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e73c) 
==9345==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:48:27+00:00:
`NULL pointer 44`
==9365==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f8836a4f5a1 bp 0x7ffc7cfcfc70 sp 0x7ffc7cfcf3e8 T0)
==9365==The signal is caused by a READ memory access.
==9365==Hint: address points to the zero page.
    #0 0x7f8836a4f5a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7f88385ff3de in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x773de)
    #2 0x7f88380b8263 in dxf_unknownsection_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7274
    #3 0x7f88380becb3 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7713
    #4 0x7f88371d7ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x562e385dc465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f88368e2b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x562e385db489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==9365==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:48:37+00:00:
`NULL pointer 45`
==9380==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f30334d6e1a bp 0x7ffef6a91ec0 sp 0x7ffef6a91620 T0)
==9380==The signal is caused by a READ memory access.
==9380==Hint: address points to the zero page.
    #0 0x7f30334d6e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f30320d4647 in dwg_find_table_control /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1517
    #2 0x7f30320d5ae1 in dwg_find_tablehandle /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1667
    #3 0x7f30320d5797 in dwg_find_tablehandle_silent /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1634
    #4 0x7f3032f64687 in find_tablehandle /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4015
    #5 0x7f3032faf53e in resolve_postponed_object_refs /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7447
    #6 0x7f3032fb3d2e in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7719
    #7 0x7f30320ccee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #8 0x55ec54b6a465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #9 0x7f30317d7b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #10 0x55ec54b69489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9380==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:48:50+00:00:
`NULL pointer 46`
==9393==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f5a5b777e1a bp 0x7ffd374414e0 sp 0x7ffd37440c40 T0)
==9393==The signal is caused by a READ memory access.
==9393==Hint: address points to the zero page.
    #0 0x7f5a5b777e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f5a5b24e0b7 in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7257
    #2 0x7f5a5b254b16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #3 0x7f5a5a36dee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x55c509650465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f5a59a78b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x55c50964f489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9393==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:48:59+00:00:
`NULL pointer 47`
==9409==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f6fc00d45a1 bp 0x7ffdf7d35010 sp 0x7ffdf7d34788 T0)
==9409==The signal is caused by a READ memory access.
==9409==Hint: address points to the zero page.
    #0 0x7f6fc00d45a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7f6fc1c5e57b  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b)
    #2 0x7f6fc0ec9699 in dynapi_set_helper /home/skyvast/Documents/libredwg-0.10.1.2677/src/gen-dynapi.pl:1686
    #3 0x7f6fc0ec9fdb in dwg_dynapi_entity_set_value /home/skyvast/Documents/libredwg-0.10.1.2677/src/gen-dynapi.pl:1752
    #4 0x7f6fc17321cb in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6318
    #5 0x7f6fc173bff1 in dxf_entities_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7161
    #6 0x7f6fc1743ab2 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7696
    #7 0x7f6fc085cee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #8 0x55c2ad954465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #9 0x7f6fbff67b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #10 0x55c2ad953489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==9409==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:49:09+00:00:
`NULL pointer 48`
==9465==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f7a91629284 bp 0x7ffebc7a29b0 sp 0x7ffebc7a2970 T0)
==9465==The signal is caused by a READ memory access.
==9465==Hint: address points to the zero page.
    #0 0x7f7a91629283 in add_MLINESTYLE_lines /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1462
    #1 0x7f7a9168aa23 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5897
    #2 0x7f7a9169b320 in dxf_unknownsection_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7281
    #3 0x7f7a916a1cb3 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7713
    #4 0x7f7a907baee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x56248a689465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f7a8fec5b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x56248a688489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1462 in add_MLINESTYLE_lines
==9465==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:49:24+00:00:
`NULL pointer 49`
==9487==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f9b9af9d5a1 bp 0x7ffcd8468360 sp 0x7ffcd8467ad8 T0)
==9487==The signal is caused by a READ memory access.
==9487==Hint: address points to the zero page.
    #0 0x7f9b9af9d5a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7f9b9cb4d3de in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x773de)
    #2 0x7f9b9c605c70 in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7238
    #3 0x7f9b9c60cb16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #4 0x7f9b9b725ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55a2be3d7465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f9b9ae30b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55a2be3d6489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==9487==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:49:35+00:00:
`NULL pointer 50`
==9493==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f18cbcfde1a bp 0x7ffd9d1d12b0 sp 0x7ffd9d1d0a10 T0)
==9493==The signal is caused by a READ memory access.
==9493==Hint: address points to the zero page.
    #0 0x7f18cbcfde19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f18cb75c9ce in dxf_classes_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:1039
    #2 0x7f18cb7da526 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7645
    #3 0x7f18ca8f3ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #4 0x557666914465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #5 0x7f18c9ffeb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #6 0x557666913489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9493==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:49:50+00:00:
`NULL pointer51`
==9498==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fcfbfb76e1a bp 0x7fff98ea77a0 sp 0x7fff98ea6f00 T0)
==9498==The signal is caused by a READ memory access.
==9498==Hint: address points to the zero page.
    #0 0x7fcfbfb76e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7fcfbf646dec in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6701
    #2 0x7fcfbf64bff1 in dxf_entities_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7161
    #3 0x7fcfbf653ab2 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7696
    #4 0x7fcfbe76cee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x561e348ec465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7fcfbde77b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x561e348eb489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9498==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:50:01+00:00:
`NULL pointer52`
==9503==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fc323786e1a bp 0x7ffc4974d3f0 sp 0x7ffc4974cb50 T0)
==9503==The signal is caused by a READ memory access.
==9503==Hint: address points to the zero page.
    #0 0x7fc323786e19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7fc322384647 in dwg_find_table_control /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1517
    #2 0x7fc322386240 in dwg_find_tablehandle /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1725
    #3 0x7fc322385797 in dwg_find_tablehandle_silent /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:1634
    #4 0x7fc3232147a8 in find_tablehandle /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4023
    #5 0x7fc32325e3e4 in resolve_postponed_header_refs /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7384
    #6 0x7fc32326359a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7653
    #7 0x7fc32237cee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #8 0x55aa6ff67465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #9 0x7fc321a87b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #10 0x55aa6ff66489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9503==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:50:12+00:00:
`NULL pointer53`
==9510==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f766600ee1a bp 0x7ffcf2ff5860 sp 0x7ffcf2ff4fc0 T0)
==9510==The signal is caused by a READ memory access.
==9510==Hint: address points to the zero page.
    #0 0x7f766600ee19  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19)
    #1 0x7f7665aeb13f in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7615
    #2 0x7f7664c04ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #3 0x55934ede8465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #4 0x7f766430fb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #5 0x55934ede7489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e19) 
==9510==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:50:24+00:00:
`NULL pointer 54`
==9530==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7ff6ad39a5a1 bp 0x7ffef5802b40 sp 0x7ffef58022b8 T0)
==9530==The signal is caused by a READ memory access.
==9530==Hint: address points to the zero page.
    #0 0x7ff6ad39a5a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7ff6aef2457b  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b)
    #2 0x7ff6ae18f699 in dynapi_set_helper /home/skyvast/Documents/libredwg-0.10.1.2677/src/gen-dynapi.pl:1686
    #3 0x7ff6ae18ffdb in dwg_dynapi_entity_set_value /home/skyvast/Documents/libredwg-0.10.1.2677/src/gen-dynapi.pl:1752
    #4 0x7ff6ae9f81cb in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6318
    #5 0x7ff6aea02d2d in dxf_objects_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7245
    #6 0x7ff6aea09b16 in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7701
    #7 0x7ff6adb22ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #8 0x560424356465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #9 0x7ff6ad22db96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #10 0x560424355489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==9530==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:50:36+00:00:
`NULL pointer 55`
==9544==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7ff28ca065a1 bp 0x7ffc935402b0 sp 0x7ffc9353fa28 T0)
==9544==The signal is caused by a READ memory access.
==9544==Hint: address points to the zero page.
    #0 0x7ff28ca065a0  (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0)
    #1 0x7ff28e59057b  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b)
    #2 0x7ff28e028c48 in add_ent_preview /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4298
    #3 0x7ff28e068058 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6616
    #4 0x7ff28e06bcbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #5 0x7ff28e07589a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #6 0x7ff28d18eee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #7 0x5595dc16a465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #8 0x7ff28c899b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #9 0x5595dc169489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18e5a0) 
==9544==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:50:59+00:00:
PoCs here.
[null_pointer.zip](https://github.com/LibreDWG/libredwg/files/4071001/null_pointer.zip)


---

Comment by rurban on 2020-01-16 12:09:14+00:00:
Thanks, I can repro all 55

---

Comment by skyvast404 on 2020-07-20 02:15:32+00:00:
These bugs credited by ADLab.
CVE-2020-15807

Attachments:
https://github.com/LibreDWG/libredwg/files/4071001/null_pointer.zip

================= Bug Report (3/3) ==================
## Source: GitHub Issue
## URL: https://github.com/LibreDWG/libredwg/issues/190
## Description:
Issue: LibreDWG/libredwg#190
Title: Some heap_overflow bug
State: closed
Created by: skyvast404
Created at: 2020-01-16 11:51:56+00:00
Labels: bug, fuzzing

Issue Body:
Hi, I got some bugs which you can reproduce `dxf2dwg $PoC -o /dev/null` .Thses bugs work on version `0.10.1.2685` and `earlier`.


Comments:
Comment by skyvast404 on 2020-01-16 11:52:17+00:00:
Heap over flow1
=================================================================
==9430==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000515c8 at pc 0x7f0679221526 bp 0x7fff931e9240 sp 0x7fff931e9230
READ of size 8 at 0x6020000515c8 thread T0
    #0 0x7f0679221525 in add_MLINE /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4637
    #1 0x7f06792532d4 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5930
    #2 0x7f067925fcbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7f067926989a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7f0678382ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55ef2f125465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f0677a8db96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55ef2f124489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

0x6020000515c8 is located 8 bytes to the left of 16-byte region [0x6020000515d0,0x6020000515e0)
freed by thread T0 here:
    #0 0x7f06798117b8 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xde7b8)
    #1 0x7f06791e3788 in dxf_free_pair /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:285
    #2 0x7f067925ccd6 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6699
    #3 0x7f067925fcbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #4 0x7f067926989a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #5 0x7f0678382ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #6 0x55ef2f125465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #7 0x7f0677a8db96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

previously allocated by thread T0 here:
    #0 0x7f0679811d38 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded38)
    #1 0x7f06791e1465 in xcalloc /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:76
    #2 0x7f06791e37b0 in dxf_read_pair /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:292
    #3 0x7f067925cce5 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6700
    #4 0x7f067925fcbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #5 0x7f067926989a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #6 0x7f0678382ee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #7 0x55ef2f125465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #8 0x7f0677a8db96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: heap-buffer-overflow /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4637 in add_MLINE
Shadow bytes around the buggy address:
  0x0c0480002260: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c0480002270: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c0480002280: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c0480002290: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c04800022a0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa 01 fa
=>0x0c04800022b0: fa fa fd fd fa fa fd fd fa[fa]fd fd fa fa fd fd
  0x0c04800022c0: fa fa 00 00 fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c04800022d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c04800022e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c04800022f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c0480002300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==9430==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:52:42+00:00:
Heap_overflow2
================================================================
==9471==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000204a8 at pc 0x7f66ed6bc79e bp 0x7fff91c13050 sp 0x7fff91c13040
READ of size 8 at 0x6020000204a8 thread T0
    #0 0x7f66ed6bc79d in add_MLINE /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4645
    #1 0x7f66ed6ee2d4 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:5930
    #2 0x7f66ed6facbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #3 0x7f66ed70489a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #4 0x7f66ec81dee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #5 0x55a8060bf465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #6 0x7f66ebf28b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55a8060be489 in _start (/home/skyvast/Documents/asan_libredwg/bin/dxf2dwg+0x2489)

0x6020000204a8 is located 8 bytes to the left of 16-byte region [0x6020000204b0,0x6020000204c0)
allocated by thread T0 here:
    #0 0x7f66edcacd38 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded38)
    #1 0x7f66ed67c465 in xcalloc /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:76
    #2 0x7f66ed67e7b0 in dxf_read_pair /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:292
    #3 0x7f66ed6f7ce5 in new_object /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6700
    #4 0x7f66ed6facbd in dxf_blocks_read /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:6955
    #5 0x7f66ed70489a in dwg_read_dxf /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:7679
    #6 0x7f66ec81dee7 in dxf_read_file /home/skyvast/Documents/libredwg-0.10.1.2677/src/dwg.c:319
    #7 0x55a8060bf465 in main /home/skyvast/Documents/libredwg-0.10.1.2677/programs/dxf2dwg.c:255
    #8 0x7f66ebf28b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: heap-buffer-overflow /home/skyvast/Documents/libredwg-0.10.1.2677/src/in_dxf.c:4645 in add_MLINE
Shadow bytes around the buggy address:
  0x0c047fffc040: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fffc050: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fffc060: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fffc070: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fffc080: fa fa fd fd fa fa fd fd fa fa 01 fa fa fa fd fd
=>0x0c047fffc090: fa fa fd fd fa[fa]00 00 fa fa fa fa fa fa fa fa
  0x0c047fffc0a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fffc0b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fffc0c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fffc0d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fffc0e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==9471==ABORTING

---

Comment by skyvast404 on 2020-01-16 11:52:59+00:00:
PoC here.
[heap_overflow.zip](https://github.com/LibreDWG/libredwg/files/4071008/heap_overflow.zip)


---

Comment by rurban on 2020-01-16 12:08:33+00:00:
Thanks, I can repro all

---

Comment by skyvast404 on 2020-07-20 02:16:16+00:00:
These bugs credited by ADLab.
CVE-2020-15807

Attachments:
https://github.com/LibreDWG/libredwg/files/4071008/heap_overflow.zip

Build script:
#!/bin/bash -eu
# Minimized build script with only core build commands
set -eu
sh ./autogen.sh
./configure --disable-shared
make -j$(nproc)

Dockerfile:
FROM hwiwonlee/secb.base:latest
RUN apt-get update && apt-get install -y autoconf libtool texinfo
RUN git clone https://github.com/libredwg/libredwg libredwg
RUN git -C libredwg checkout a78682cd696ba6efa010ef7be3d046619513fcf2
WORKDIR $SRC/libredwg
COPY build.sh $SRC/

Additional files:
filename: fuzz_dwg_decode.options
content: [libfuzzer]
detect_leaks=0