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: Till Heuschmann
Subject: [libredwg] Re: [patch #7046] R2004 Header parsing
Date: Thu, 24 Dec 2009 12:38:22 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hi Rodrigo,

I'm very sorry that your first run with this code went wrong!
It seems to me that your file differs in some way with the ones testet so far:

yours:
DwgVer: 29
MaintRelease: 6

mine:
DwgVer: 25
MaintRelease: 2

My dwg file is attached to this email, its the Sample.dwg file from the examples directory with some objects added. Could you please send me your file than can I test it and fix the code (after a few free days)?

Here is my output:

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 0x02
Byte 0x00, 0x01, or 0x03: 0x03
Preview Address: 0x00000120
DwgVer: 25
MaintRelease: 2
Codepage: 30
3 0x00 bytes: 0x00 0x00 0x00
SecurityType: 0x00000000
Unknown long: 0x00000000
DWG Property Addr: 0x00000000
VBA Project Addr: 0x00000000
0x00000080: 0x00000080

#### 2004 File Header Data fields ####

File ID string (must be AcFssFcAJMB): AcFssFcAJMB
0x00 (long): 0
0x6c (long): 6c
0x04 (long): 4
Root tree node gap: 0
Lowermost left tree node gap: 0
Lowermost right tree node gap: 0
Unknown long: 1
Last section id: c
Last section address: 6c60
0x00 (long): 0
Second header address: 6c01
0x00 (long): 0
Gap amount: 0
Section amount: b
0x20 (long): 20
0x80 (long): 80
0x40 (long): 40
Section map id: c
Section map address: 6b80
0x00 (long): 0
Section Info id: b
Section array size: c
Gap array size: 0
CRC: c268f90

Raw system section bytes:
3b e 63 41 58 0 0 0 59 0 0 0 2 0 0 0 57 a bf 24

=== System Section (Section Map) ===
Section Type (should be 0x4163043b): 41630e3b
DecompDataSize: 58
CompDataSize: 59
Compression Type: 2
Checksum: 24bf0a57

Rodrigo Rodrigues da Silva schrieb:
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


Attachment: sample2004.dwg
Description: Binary data


reply via email to

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