bugLibreDWG - Bugs: bug #29270, dwg_print_BLOCK_HEADER segfaults

 
 

bug #29270: dwg_print_BLOCK_HEADER segfaults

Submitted by:  Rodrigo Rodrigues da Silva <pitanga>
Submitted on:  Fri 19 Mar 2010 09:42:27 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 19 Mar 2010 09:42:27 PM UTC, original submission:

In order to reproduce this bug you need to compile with LIBREDWG_TRACE=9 and ./configure --enable trace.

This is the backtrace:

==========
-objref: HANDLE(5.1.24) Absolute:24
-found: HANDLE(0.1.24)
Object BLOCK_HEADER:
Object handle: 0.1.24
entry_name: "*MODEL_SPACE"
_64_flag: 1
xrefindex_plus1: 0
xdep: 0
anonymous: 0
hasattrs: 0
blkisxref: 0
xrefoverlaid: 0
loaded_bit: 0
base_pt.x: 0.000000
base_pt.y: 0.000000
base_pt.z: 0.000000
xref_pname: ""
block_description: ""
size_of_preview_data: 0
block_control_handle: HANDLE(4.1.1) absolute:1
xdicobjhandle: HANDLE(3.0.0) absolute:0
NULL_handle: HANDLE(5.0.0) absolute:0
block_entity: HANDLE(3.1.25) absolute:25
first_entity: HANDLE(4.2.433) absolute:433
last_entity: HANDLE(4.2.4427) absolute:4427
endblk_entity: HANDLE(3.1.26) absolute:26

Program received signal SIGSEGV, Segmentation fault.
0x00007f2dbf7165ed in dwg_print_BLOCK_HEADER (dat=0x7fff1fbe2670, obj=0x1deb808) at /usr/include/bits/stdio2.h:98
98 return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
(gdb) bt
#0 0x00007f2dbf7165ed in dwg_print_BLOCK_HEADER (dat=0x7fff1fbe2670, obj=0x1deb808) at /usr/include/bits/stdio2.h:98
#1 0x00007f2dbf6cf9af in resolve_objectref_vector (dwg=0x7fff1fbe26b0) at decode.c:878
#2 0x00007f2dbf6fb4b4 in decode_R13_R15 (dat=0x7fff1fbe2670, dwg=0x7fff1fbe26b0) at decode.c:840
#3 0x00007f2dbf6fb955 in dwg_decode_data (dat=0x7fff1fbe2670, dwg=0x7fff1fbe26b0) at decode.c:345
#4 0x00007f2dbf6cae2b in dwg_read_file (filename=<value optimized out>, dwg_data=0x7fff1fbe26b0) at dwg.c:92
#5 0x0000000000401499 in test_SVG (filename=0x2 <Address 0x2 out of bounds>) at testSVG.c:57
#6 0x00007f2dbf0ef5a6 in __libc_start_main () from /lib/libc.so.6

Rodrigo Rodrigues da Silva <pitanga>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pitanga (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup