bugLibreDWG - Bugs: bug #28503, Another test

 
 

bug #28503: Another test

Submitted by:  James Michael DuPont <mdupont>
Submitted on:  Wed 06 Jan 2010 07:30:08 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  Reini Urban <reini_urban>
Open/Closed:  Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

( Jump to the original submission)

Sun 10 Jun 2018 11:16:13 AM UTC, comment #6:

Found and fixed the errors with such really big (>40MB) DWG files.

I added arbitrary hard-coded size limits for sizes and counts of elements, and these broke reading such realistic large files.
I fixed now the limits to dynamic numbers based on the actual filesize.
HARTA_E_PRISHTINES.dwg (r2007 and r2004) can now be read.

#define DBG_MAX_COUNT 0x100000
#define DBG_MAX_SIZE 0xff0000 /* should be dat->size * compression factor */

Reini Urban <reini_urban>
Project AdministratorIn charge of this item.
Sun 10 Jun 2018 07:51:45 AM UTC, comment #5:

This really is an interesting example.

It's the only known DWG with a file_header compr_len > 165. It has 170, and when resaved from acad even 172. (without the xref's resolved). So it's not good compressable. Maybe there's some lurking bug, but I doubt it.

When resaved as r2004 it fails at another place:
Section count 62575616 in area 7 too high. So the r2004 section reader is also a bit unstable.

It's not encrypted.

Reini Urban <reini_urban>
Project AdministratorIn charge of this item.
Sat 09 Jun 2018 12:39:49 PM UTC, comment #4:

Thanks a lot for the Prishtina sample. Indeed this asserts. AC1021
Will fix it asap.

rl_28_80: 128 [RL 0]
Assertion failed: ((uint64_t)file_header->file_size < DBG_MAX_SIZE), function read_file_header, file decode_r2007.c, line 1039.

Reini Urban <reini_urban>
Project AdministratorIn charge of this item.
Wed 25 Apr 2018 01:50:52 PM UTC, comment #3:

http://www.degradimi.info is not available anymore.
I'm very interested in Prishtina.

Reini Urban <reini_urban>
Project AdministratorIn charge of this item.
Mon 20 May 2013 10:27:50 AM UTC, comment #2:

I want to test this bug.
I came across this link and it's not working.

Avneet Kaur <avneetkhalsa>
Project Member
Wed 13 Jan 2010 08:45:10 PM UTC, comment #1:

I couldn't open report.txt. Gedit showed just a lot of chinese charachters.

Rodrigo Rodrigues da Silva <pitanga>
Project Administrator
Wed 06 Jan 2010 07:30:08 PM UTC, original submission:

http://www.degradimi.info/dropbox/k_prishtina_com.dwg.zip

libredwg/examples$ ./testSVG /media/sdc1/2010/openstreetmap/prishtina/K-Prishtina-Com.dwg > report.txt 2>&1

James Michael DuPont <mdupont>
Project Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #19423:  report.txt added by mdupont (124KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by reini_urban (Posted a comment)
  • -email is unavailable- added by avneetkhalsa (Posted a comment)
  • -email is unavailable- added by pitanga (Posted a comment)
  • -email is unavailable- added by mdupont (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-11 reini_urban StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2018-06-10 reini_urban StatusConfirmed => Ready For Test
    2018-06-09 reini_urban StatusNeed Info => Confirmed
        Open/ClosedClosed => Open
    2018-06-08 reini_urban Open/ClosedOpen => Closed
    2018-04-25 reini_urban StatusNone => Need Info
        Assigned toNone => reini_urban
    2010-01-06 mdupont Attached File- => Added report.txt, #19423

    Back to the top


    Powered by Savane 3.3