libredwg
[Top][All Lists]
Advanced

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

[libredwg] Re: [patch #7046] R2004 Header parsing


From: Rodrigo Rodrigues da Silva
Subject: [libredwg] Re: [patch #7046] R2004 Header parsing
Date: Wed, 23 Dec 2009 19:47:29 -0200

Till, I've integrated your patch, but I get a segfault when I run
testSVG against a R2004 file.

That's my output:

> address@hidden:~/devel/libredwg/examples$ ./testSVG 
> ~/docs/polignu/libredwg/examples/lofrano/R2004.dwg
> This file's version code is: AC1018
> WARNING: This version of LibreDWG is only capable of properly decoding 
> version R2000 (code: AC1015) dwg-files.
> This file's version code is: AC1018
>  This version is not yet actively developed.
> It will probably crash and/or give you invalid output.
> 6 bytes of 0x00: 0x00 0x00 0x00 0x00 0x00 0x68
> Byte 0x00, 0x01, or 0x03: 0x03
> Preview Address: 0x000001C0
> DwgVer: 29
> MaintRelease: 6
> Codepage: 30
> 3 0x00 bytes: 0x00 0x1D 0x06
> SecurityType: 0x00000000
> Unknown long: 0x00000000
> DWG Property Addr: 0x00000120
> VBA Project Addr: 0x00000000
> 0x00000080: 0x00000080
> Warning: Byte should be zero! But a value=e0 was read instead.
> Warning: Byte should be zero! But a value=81 was read instead.
> Warning: Byte should be zero! But a value=80 was read instead.
> Warning: Byte should be zero! But a value=83 was read instead.
>
> #### 2004 File Header Data fields ####
>
> File ID string (must be AcFssFcAJMB): AcFssFcAJMB
> 0x00 (long): 6c
> 0x6c (long): 0
> 0x04 (long): 0
> Root tree node gap: 23e
> Lowermost left tree node gap: 0
> Lowermost right tree node gap: 0
> Unknown long: 23c
> Last section id: 80
> Last section address: 23e
> 0x00 (long): 0
> Second header address: 23e
> 0x00 (long): 6e0695ed
> Gap amount: 717500d8
> Section amount: 23c1d0
> 0x20 (long): 602090
> 0x80 (long): 7a191500
> 0x40 (long): 0
> Section map id: 0
> Section map address: 71d37100
> 0x00 (long): 71f8270a
> Section Info id: 1
> Section array size: 0
> Gap array size: 7a190920
> CRC: 7a191500
>
>
> Raw system section bytes:
> Falha de segmentação

I can send you the file if you want. Did you test it successfully with
any file? Please send me them if you can.
--
Rodrigo Rodrigues da Silva
PoliGNU - Grupo de Estudos de Software Livre da Poli/USP
FSF Associate Member #7788




reply via email to

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