issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
261k
issue_title
stringlengths
1
925
issue_comments_url
stringlengths
56
81
issue_comments_count
int64
0
2.5k
issue_created_at
stringlengths
20
20
issue_updated_at
stringlengths
20
20
issue_html_url
stringlengths
37
62
issue_github_id
int64
387k
2.46B
issue_number
int64
1
127k
[ "LibreDWG", "libredwg" ]
Still XRECORD failures after indxf, due to wrong xdata_size and subsequent obj->size calculation on encode. example_2000: 2B6 ``` Next object: 189 Handleoff: 3 [UMC] Offset: -75 [MC] +Next object: 159 Handleoff: 4 [UMC] Offset: 36 [MC] ========================================== -Object number: 189/BD, Size: 50 [MS], Type: 79 [BS], Address: 133491 -Add object XRECORD [189] Decode object XRECORD -bitsize: 354 [RL] @3.2 - Hdlsize: 46, +Object number: 159/9F, Size: 47 [MS], Type: 79 [BS], Address: 40920 +Add object XRECORD [159] Decode object XRECORD +bitsize: 322 [RL] @3.2 + Hdlsize: 54, handle: 0.2.2B6 [H 5] num_eed: 0 num_reactors: 1 [BL 0] -ownerhandle: (4.1.C) abs:C [H 330] +ownerhandle: (12.2.2AA) abs:C [H 330] reactors[0]: (4.1.C) abs:C [H* 330] xdicobjhandle: (3.0.0) abs:0 [H 360] xdata_size: 32 [BL 0] xdata[0]: "ACDMAC" [TV 300] xdata[1]: "2018" [TV 300] -xdata[2]: "ACD_F_S" [TV 300] -cloning_flags: 1 [BS 280] +xdata[2]: "ACD@p<80><AA>" [TV 300] Warning: xdata Written 28, expected 32 +cloning_flags: 0 [BS 280] num_objid_handles: 0 [BL] -crc: 6E9F [RSx] +crc: FDA5 [RSx] -bitsize calc from HANDLE_STREAM @40960.2 (40920) -size: 47 [MS] @40918 -bitsize: 322 [RL] @40921.2 ```
encode: fix xdata_size
https://api.github.com/repos/LibreDWG/libredwg/issues/224/comments
1
2020-04-10T06:19:57Z
2020-04-10T16:14:25Z
https://github.com/LibreDWG/libredwg/issues/224
597,719,185
224
[ "LibreDWG", "libredwg" ]
See e.g. http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-6A4C31C0-4988-499C-B5A4-15582E433B0F Dimension, leader, and tolerance entities may need to store overrides in xdata. Check if we need to create this xdata from/to dxf by ourself.
Add support for DIMENSION STYLE Overrides
https://api.github.com/repos/LibreDWG/libredwg/issues/223/comments
0
2020-04-07T18:44:48Z
2020-04-07T18:45:00Z
https://github.com/LibreDWG/libredwg/issues/223
596,075,784
223
[ "LibreDWG", "libredwg" ]
needed for GH #221
indxf: support BLOCK_HEADER.entities
https://api.github.com/repos/LibreDWG/libredwg/issues/222/comments
1
2020-04-03T21:10:39Z
2020-04-06T09:17:02Z
https://github.com/LibreDWG/libredwg/issues/222
593,642,936
222
[ "LibreDWG", "libredwg" ]
see GH #219 with r2000, our only write format we need to convert all entity arrays (like BLOCK_HEADER) to a linked list of entities, via prev and next_entity.
convert entity arrays to linked lists
https://api.github.com/repos/LibreDWG/libredwg/issues/221/comments
1
2020-04-03T12:16:06Z
2020-04-06T09:17:30Z
https://github.com/LibreDWG/libredwg/issues/221
593,340,800
221
[ "LibreDWG", "libredwg" ]
My system is Win8.1 X64,when I run dwg2dxf.exe in libredwg-0.10.1.3157-win64,the system remind me "lose libssp-0.lib" can't start it.Do I only need a libssp-0.dll and put it in system to fix it?
lose libssp-0.lib
https://api.github.com/repos/LibreDWG/libredwg/issues/220/comments
2
2020-04-03T01:35:51Z
2020-04-06T09:17:29Z
https://github.com/LibreDWG/libredwg/issues/220
593,017,661
220
[ "LibreDWG", "libredwg" ]
at least with r2000 `BLOCK_HEADER.first_` and `last_entity` is totally unreliable, at least for the very last block. So iterate over all ownerhandles and check them instead. Also `get_next_owned_block()` is wrong for dxf BLOCKS, use a new `get_next_owned_block_entity` instead. We need all block entities, not just its INSERT subentities. This was visible in the `dxf.test` check roundtrip, unTODO this test.
dxf: missing BLOCK entities
https://api.github.com/repos/LibreDWG/libredwg/issues/219/comments
1
2020-03-30T15:48:45Z
2020-04-02T16:24:23Z
https://github.com/LibreDWG/libredwg/issues/219
590,397,125
219
[ "LibreDWG", "libredwg" ]
Hello @rurban, sorry for the simple question: i'm a complete newby. I downloaded the windows nightly at https://github.com/LibreDWG/libredwg/releases. But I have no idea on where i should put the files to make them available in FreeCAD (EDIT and use the functions through its python console). Any avice? thx :) carlo
[SOLVED] Installing libredwg on windows to use it within FreeCAD
https://api.github.com/repos/LibreDWG/libredwg/issues/218/comments
4
2020-03-29T09:36:26Z
2020-04-06T09:18:00Z
https://github.com/LibreDWG/libredwg/issues/218
589,754,317
218
[ "LibreDWG", "libredwg" ]
And process common object handles before the object-specific handles. So far we do it only with r2007+ (and newer objects), but we do have the bitsize even with r13. Fixes at least DICTIONARYWDFLT and DIMASSOC. There's one exception: _CONTROL objects, which have num_entries BL mixed in before the ownerhandle. See `smoke/json`.
init handles early for all versions
https://api.github.com/repos/LibreDWG/libredwg/issues/214/comments
0
2020-03-24T10:13:32Z
2020-03-25T18:34:56Z
https://github.com/LibreDWG/libredwg/issues/214
586,844,326
214
[ "LibreDWG", "libredwg" ]
we already gathered known dxf/dwg value pairs of all unstable/debugging class for `examples/unknown`. use these known dxf values, to check against decoded dwg's. so far we only tested against max known values (overflows) or nan (decoding errors with doubles only), but we never caught simple mixed up fields, esp. with unstable or debugging objects.
add dxf unit tests, check against examples/alldxf_1.inc values
https://api.github.com/repos/LibreDWG/libredwg/issues/212/comments
0
2020-03-16T09:20:42Z
2020-03-20T12:43:10Z
https://github.com/LibreDWG/libredwg/issues/212
582,131,036
212
[ "LibreDWG", "libredwg" ]
``` MAKEINFO ../../../doc/LibreDWG.info mkdir: cannot create directory ‘.am10094’: Permission denied could not open ../../../doc/LibreDWG.texi: No such file or directory /bin/bash: line 16: cd: ../../../doc: No such file or directory Makefile:455: recipe for target '../../../doc/LibreDWG.info' failed make[3]: *** [../../../doc/LibreDWG.info] Error 1 make[3]: Leaving directory '/home/travis/build/LibreDWG/libredwg/libredwg-0.10.1.3019.18_0d97/_build/sub/doc' ``` about 20% of cases fail randomly. upstream error, known for a long time, when the texi file has some depends. * http://gnu-automake.7480.n7.nabble.com/distcheck-does-chmod-a-w-leads-to-mkdir-quot-permission-denied-quot-td22365.html * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456632
flapping make distcheck with makeinfo
https://api.github.com/repos/LibreDWG/libredwg/issues/211/comments
0
2020-03-12T07:28:39Z
2020-04-06T09:17:29Z
https://github.com/LibreDWG/libredwg/issues/211
579,745,100
211
[ "LibreDWG", "libredwg" ]
For debugging it's needed to catch errors, but for releases be more permissive, and either skip BD, or replace by 0.0 on points
Skip nan in exports on IS_RELEASE
https://api.github.com/repos/LibreDWG/libredwg/issues/210/comments
0
2020-03-10T19:07:03Z
2020-03-14T14:33:47Z
https://github.com/LibreDWG/libredwg/issues/210
578,799,497
210
[ "LibreDWG", "libredwg" ]
When using the dwgread command and export a dwg to json format, the json exported add an extra comma which is a non-valid json : here is the command that i used : dwgread test.dwg -O GeoJson test.json { "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { "SubClasses": "AcDbObject : AcDbGeoData", "EntityHandle": "4" } , <=== EXTRA COMMA }, }
GeoJSON exporting : error in json format
https://api.github.com/repos/LibreDWG/libredwg/issues/209/comments
4
2020-03-10T11:42:37Z
2020-03-14T14:34:08Z
https://github.com/LibreDWG/libredwg/issues/209
578,520,270
209
[ "LibreDWG", "libredwg" ]
On certain locales fprint %f/%g will use a comma, not a dot. Check that and set the C locale then on all exporters. Not sure about sscanf (importers).
No commas in floats, use the C locale?
https://api.github.com/repos/LibreDWG/libredwg/issues/208/comments
1
2020-03-04T07:12:55Z
2020-03-14T14:34:23Z
https://github.com/LibreDWG/libredwg/issues/208
575,184,865
208
[ "LibreDWG", "libredwg" ]
I feel this is mostly related to code quality: https://github.com/LibreDWG/libredwg/blob/0a491e5fa0bb7bc7133e4c247fcc9e6a2c3b0166/programs/dwg2dxf.c#L245-L253 https://github.com/LibreDWG/libredwg/blob/0a491e5fa0bb7bc7133e4c247fcc9e6a2c3b0166/programs/dxf2dwg.c#L245-L252
Missing memset and zero outing
https://api.github.com/repos/LibreDWG/libredwg/issues/207/comments
1
2020-02-19T19:48:07Z
2020-02-21T21:03:07Z
https://github.com/LibreDWG/libredwg/issues/207
567,804,360
207
[ "LibreDWG", "libredwg" ]
There is an inconsistency here: https://github.com/LibreDWG/libredwg/blob/0a491e5fa0bb7bc7133e4c247fcc9e6a2c3b0166/src/decode.c#L2806-L2808 https://github.com/LibreDWG/libredwg/blob/0a491e5fa0bb7bc7133e4c247fcc9e6a2c3b0166/src/decode_r2007.c#L1701-L1705 Looks like two checks are missing. But, on the other hand, If ptr is a null pointer, no action occurs in free.
Missing NULL check before passing to free
https://api.github.com/repos/LibreDWG/libredwg/issues/206/comments
1
2020-02-19T19:16:32Z
2020-02-23T22:48:09Z
https://github.com/LibreDWG/libredwg/issues/206
567,785,274
206
[ "LibreDWG", "libredwg" ]
needed for the many more objects we don't properly support yet, with HANDLE in loops (TABLE, TABLESTYLE, MLEADERSTYLE, ...) call obj_handle_stream right at the beginning when we know the bitsize. remove the duplicate REPEAT block sections after the HANDLE_STREAM, read right into it. remove the related special-cases for free with the previous double loops on encode write into a seperate hdl_dat stream, and flush it when we reach the HANDLE_STREAM markers.
earlier setup hdl_dat stream
https://api.github.com/repos/LibreDWG/libredwg/issues/205/comments
0
2020-02-19T12:35:53Z
2020-02-21T20:57:05Z
https://github.com/LibreDWG/libredwg/issues/205
567,539,960
205
[ "LibreDWG", "libredwg" ]
0.10.1 was fine. All the invalid NULL handles are appearing again.
0.11 in_dxf *_CONTROL.entites[] NULL hdl regression
https://api.github.com/repos/LibreDWG/libredwg/issues/204/comments
0
2020-02-19T09:11:00Z
2020-02-28T07:45:39Z
https://github.com/LibreDWG/libredwg/issues/204
567,420,763
204
[ "LibreDWG", "libredwg" ]
This post is listed in the order of questions first followed by specs, problem descriptions, and information. ### Questions: 1. What perl module is needed to get past the make check error shown below? (see the "04 output:" of the "Description of the problem:" section shown below.) 2. What does the error message about the undefined symbol in line 187 of the DynaLoader.pm file mean and is this significant or can this be ignored for now? (see the "Make check error examined:" section near the bottom) 3. Please let me know if I can provide anything else that might be helpful for figuring this out. Thanks. ### Specs: **OS:** Linux **Desktop:** Xubuntu 18.04.4 LTS **Bash version:** 4.4.20(1)-release (x86_64-pc-linux-gnu) **Perl version:** 5.26.1-6ubuntu0.3 **Dependencies installed:** - TeXinfo for building the docs - pslib for dwg2ps: http://pslib.sourceforge.net/doc/pslib.html - pcre2 with 8bit and 16bit libraries for dwggrep regexp support - SWIG 1.7+ - Python 2.7 or 3.x development headers (debian: python-dev; yum: python-devel) and the libxml2 python bindings. - Perl 5 for the perl bindings - doxygen to generate the reference manual - jq to check json validity - valgrind to find leaks and memory bugs - timeout to help tests with large or hanging DWG's - GNU parallel to speed up special tests **Dependencies not installed:** - picat The above package was not installed due to not being available by default in the apt-cache repositories. ### Description of the problem: **Steps taken:** **01 command:** sh ./autogen.sh **01 outcome:** no errors. **02 command:** ./configure **02 outcome:** no errors, config looked ok. **03 command:** make **03 outcome:** Two possible errors listed, both with the same message: > make regen-dynapi might be needed ***Here is the truncated make output:*** - Paths and successful make blocks have been truncated for readability. - Make message blocks are shown in the order received. - Note that "all-am" passes the "make regen-dynapi might be needed" message, but then completes successfully without this error in a later message block. - Note that "perl" shows no errors. ```Make make all-recursive ... make all-am make[3]: Entering directory '.../libredwg/src' echo make regen-dynapi might be needed make regen-dynapi might be needed ... Making all in doc make[2]: Entering directory '.../libredwg/doc' echo make regen-dynapi might be needed make regen-dynapi might be needed ... make all-am make[4]: Entering directory '.../libredwg/bindings/python' make[4]: Nothing to be done for 'all-am'. make[4]: Leaving directory '.../libredwg/bindings/python' make[3]: Leaving directory '.../libredwg/bindings/python' make[3]: Entering directory '.../libredwg/bindings' Making all for perl make[3]: Leaving directory '.../libredwg/bindings' make[2]: Leaving directory '.../libredwg/bindings' make[2]: Entering directory '.../libredwg' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '.../libredwg' make[1]: Leaving directory '.../libredwg' ``` **04 command:** make check **04 output:** All checks "PASED" with the exeption of the following error on Perl: ```Make Making all for perl Making check for perl if grep "NOOP = rem" perl/Makefile; then false; else \ LD_LIBRARY_PATH="~/Programs/libredwg/src/.libs" make -C perl test \ OPTIMIZE="-I~/Programs/libredwg/include -I~/Programs/libredwg/src" \ OTHERLDFLAGS="-L~/Programs/libredwg/src/.libs"; fi make[4]: Entering directory '~/Programs/libredwg/bindings/perl' "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- LibreDWG.bs blib/arch/auto/LibreDWG/LibreDWG.bs 644 PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/0_basic.t .. 1/1 # Failed test 'use LibreDWG;' # at t/0_basic.t line 2. # Tried to use 'LibreDWG'. # Error: Can't load '~/Programs/libredwg/bindings/perl/blib/arch/auto/LibreDWG/LibreDWG.so' for module LibreDWG: ~/Programs/libredwg/bindings/perl/blib/arch/auto/LibreDWG/LibreDWG.so: undefined symbol: dwg_get_entity_layer at /usr/lib/x86_64-linux-gnu/perl/5.26/DynaLoader.pm line 187. # at ~/Programs/libredwg/bindings/perl/blib/lib/LibreDWG.pm line 11. # Compilation failed in require at t/0_basic.t line 2. # BEGIN failed--compilation aborted at t/0_basic.t line 2. # Looks like you failed 1 test of 1. t/0_basic.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests Test Summary Report ------------------- t/0_basic.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=1, Tests=1, 1 wallclock secs ( 0.03 usr 0.00 sys + 0.12 cusr 0.02 csys = 0.17 CPU) Result: FAIL Failed 1/1 test programs. 1/1 subtests failed. Makefile:997: recipe for target 'test_dynamic' failed make[4]: *** [test_dynamic] Error 1 make[4]: Leaving directory '~/Programs/libredwg/bindings/perl' Makefile:781: recipe for target 'check-am' failed make[3]: [check-am] Error 2 (ignored) make[3]: Leaving directory '~/Programs/libredwg/bindings' make[2]: Leaving directory '~/Programs/libredwg/bindings' make[2]: Entering directory '~/Programs/libredwg' make[2]: Nothing to be done for 'check-am'. make[2]: Leaving directory '~/Programs/libredwg' make[1]: Leaving directory '~/Programs/libredwg' ``` ### Make check error examined: The above error states the following: > undefined symbol: dwg_get_entity_layer at /usr/lib/x86_64-linux-gnu/perl/5.26/DynaLoader.pm line 187. Here is line 187 of DynaLoader.pm: ```java my $libref = dl_load_file($file, $flags) or croak("Can't load '$file' for module $module: ".dl_error()); ``` Here is the block of code that line 187 exists within: ```java sub bootstrap { # use local vars to enable $module.bs script to edit values local(@args) = @_; local($module) = $args[0]; local(@dirs, $file); unless ($module) { require Carp; Carp::confess("Usage: DynaLoader::bootstrap(module)"); } # A common error on platforms which don't support dynamic loading. # Since it's fatal and potentially confusing we give a detailed message. croak("Can't load module $module, dynamic loading not available in this perl.\n". " (You may need to build a new perl executable which either supports\n". " dynamic loading or has the $module module statically linked into it.)\n") unless defined(&dl_load_file); my @modparts = split(/::/,$module); my $modfname = $modparts[-1]; my $modfname_orig = $modfname; # For .bs file search # Some systems have restrictions on files names for DLL's etc. # mod2fname returns appropriate file base name (typically truncated) # It may also edit @modparts if required. $modfname = &mod2fname(\@modparts) if defined &mod2fname; my $modpname = join('/',@modparts); print STDERR "DynaLoader::bootstrap for $module ", "(auto/$modpname/$modfname.$dl_dlext)\n" if $dl_debug; my $dir; foreach (@INC) { $dir = "$_/auto/$modpname"; next unless -d $dir; # skip over uninteresting directories # check for common cases to avoid autoload of dl_findfile my $try = "$dir/$modfname.$dl_dlext"; last if $file = ($do_expand) ? dl_expandspec($try) : ((-f $try) && $try); # no luck here, save dir for possible later dl_findfile search push @dirs, $dir; } # last resort, let dl_findfile have a go in all known locations $file = dl_findfile(map("-L$_",@dirs,@INC), $modfname) unless $file; croak("Can't locate loadable object for module $module in \@INC (\@INC contains: @INC)") unless $file; # wording similar to error from 'require' my $bootname = "boot_$module"; $bootname =~ s/\W/_/g; @dl_require_symbols = ($bootname); # Execute optional '.bootstrap' perl script for this module. # The .bs file can be used to configure @dl_resolve_using etc to # match the needs of the individual module on this architecture. # N.B. The .bs file does not following the naming convention used # by mod2fname. my $bs = "$dir/$modfname_orig"; $bs =~ s/(\.\w+)?(;\d*)?$/\.bs/; # look for .bs 'beside' the library if (-s $bs) { # only read file if it's not empty print STDERR "BS: $bs ($^O, $dlsrc)\n" if $dl_debug; eval { local @INC = ('.'); do $bs; }; warn "$bs: $@\n" if $@; } my $boot_symbol_ref; # Many dynamic extension loading problems will appear to come from # this section of code: XYZ failed at line 123 of DynaLoader.pm. # Often these errors are actually occurring in the initialisation # C code of the extension XS file. Perl reports the error as being # in this perl code simply because this was the last perl code # it executed. my $flags = $module->dl_load_flags; my $libref = dl_load_file($file, $flags) or croak("Can't load '$file' for module $module: ".dl_error()); push(@dl_librefs,$libref); # record loaded object $boot_symbol_ref = dl_find_symbol($libref, $bootname) or croak("Can't find '$bootname' symbol in $file\n"); push(@dl_modules, $module); # record loaded module boot: my $xs = dl_install_xsub("${module}::bootstrap", $boot_symbol_ref, $file); # See comment block above push(@dl_shared_objects, $file); # record files loaded &$xs(@args); } ```
Make fails on Perl checks, which perl module is needed?
https://api.github.com/repos/LibreDWG/libredwg/issues/203/comments
9
2020-02-17T00:28:51Z
2020-03-07T14:44:56Z
https://github.com/LibreDWG/libredwg/issues/203
565,998,191
203
[ "LibreDWG", "libredwg" ]
The availaible cross-compilers for small machines (arm-linux-gnueabihf, mips) can only do C89. ``` configure: WARNING: This compiler arm-linux-gnu-gcc has no c99 support checking for stdlib.h... (cached) no checking for GNU libc compatible malloc... (cached) yes checking for stdlib.h... (cached) no checking for GNU libc compatible realloc... (cached) yes checking whether lstat correctly handles trailing slash... no checking whether stat accepts an empty string... yes checking for working alloca.h... no checking for alloca... yes checking for strtod... no configure: error: C89 strtod not found. Ignore for now ``` arm-linux-gnu-gcc --version arm-linux-gnu-gcc (GCC) 9.2.1 20190827 (Red Hat Cross 9.2.1-1)
C89 support for arm/mips
https://api.github.com/repos/LibreDWG/libredwg/issues/202/comments
1
2020-02-14T20:17:38Z
2020-02-14T20:27:45Z
https://github.com/LibreDWG/libredwg/issues/202
565,536,448
202
[ "LibreDWG", "libredwg" ]
I am getting this error while trying to convert dwg file to dxf format. Could you please check I have attached the dwg file below? [JW.zip](https://github.com/LibreDWG/libredwg/files/4163532/JW.zip) ``` vimal-pillai@blackbird:~/Downloads/jw-cartoner-cover-1.snapshot.1$ dwg2dxf -v JW.dwg Reading DWG file JW.dwg Warning: Unhandled Class object 501 MATERIAL (0x481) 14/0 Warning: Unhandled Class object 501 MATERIAL (0x481) 22/0 Warning: Unhandled Class object 501 MATERIAL (0x481) 30/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 39/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 38, length 256 ERROR: bit_read_TU buffer overflow at 38, length 256 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 40/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 39, length 256 ERROR: bit_read_TU buffer overflow at 39, length 256 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 41/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 39, length 256 ERROR: bit_read_TU buffer overflow at 39, length 256 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 42/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 39, length 256 ERROR: bit_read_TU buffer overflow at 39, length 256 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 43/0 ERROR: bit_read_TU buffer overflow at 20, length 153 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 44/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 23, length 250 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 35, length 256 ERROR: bit_read_TU buffer overflow at 36, length 256 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 39, length 2112 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 45/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 23, length 250 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 35, length 256 ERROR: bit_read_TU buffer overflow at 36, length 256 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 39, length 2112 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 46/0 ERROR: bit_read_TU buffer overflow at 23, length 256 ERROR: bit_read_TU buffer overflow at 25, length 59495 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 38, length 256 ERROR: bit_read_TU buffer overflow at 38, length 256 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 47/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 24, length 250 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 36, length 256 ERROR: bit_read_TU buffer overflow at 37, length 256 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 40, length 2112 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 48/0 ERROR: bit_read_TU buffer overflow at 23, length 256 ERROR: bit_read_TU buffer overflow at 25, length 59495 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 38, length 256 ERROR: bit_read_TU buffer overflow at 38, length 256 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 49/0 ERROR: bit_read_TU buffer overflow at 20, length 153 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 50/0 ERROR: bit_read_TU buffer overflow at 20, length 153 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 51/0 ERROR: bit_read_TU buffer overflow at 20, length 153 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 52/0 ERROR: bit_read_TU buffer overflow at 20, length 153 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 53/0 ERROR: bit_read_TU buffer overflow at 20, length 153 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 54/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 55/0 ERROR: bit_read_TU buffer overflow at 23, length 256 ERROR: bit_read_TU buffer overflow at 25, length 59495 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 38, length 256 ERROR: bit_read_TU buffer overflow at 38, length 256 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 56/0 ERROR: bit_read_TU buffer overflow at 23, length 256 ERROR: bit_read_TU buffer overflow at 25, length 59495 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 38, length 256 ERROR: bit_read_TU buffer overflow at 38, length 256 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 57/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 42, length 2112 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 58/0 ERROR: bit_read_TU buffer overflow at 24, length 159 ERROR: bit_read_TU buffer overflow at 42, length 2112 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 59/0 ERROR: bit_read_TU buffer overflow at 24, length 159 ERROR: bit_read_TU buffer overflow at 42, length 2112 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 60/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 20, length 252 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 31, length 256 ERROR: bit_read_TU buffer overflow at 32, length 256 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 61/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 20, length 252 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 31, length 256 ERROR: bit_read_TU buffer overflow at 32, length 256 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 62/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 20, length 252 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 31, length 256 ERROR: bit_read_TU buffer overflow at 32, length 256 Warning: Unstable Class object 504 TABLESTYLE (0xfff) 95/0 ERROR: TABLESTYLE r2010+ not yet implemented Warning: Unhandled Class object 506 ACDBSECTIONVIEWSTYLE (0x401) 99/0 Warning: Unhandled Class object 507 ACDBDETAILVIEWSTYLE (0x401) 101/0 Warning: Unknown Class object 509 ACMESCOPE (0x400) Warning: Unknown Class object 510 ACMECOMMANDHISTORY (0x400) Warning: Unknown Class object 511 ACIMSYSVARMAN (0x400) Warning: Unknown Class object 512 ACIMINTSYSVAR (0x400) Warning: Unknown Class object 513 ACMESTATEMGR (0x400) Warning: Unknown Class object 515 ACGREFMASTER (0x400) Warning: Unknown Class object 518 ACGREFACADMASTER (0x400) Warning: Unknown Class object 521 AMIMASTER (0x400) Warning: Unknown Class object 522 AMGSETTINGSOBJ (0x400) Warning: Unknown Class object 523 AMGOBJPROPCFG (0x400) Warning: Unknown Class object 522 AMGSETTINGSOBJ (0x400) Warning: Unknown Class object 524 MAPIAMMOUDLE (0x400) Warning: Unknown Class object 511 ACIMSYSVARMAN (0x400) Warning: Unknown Class object 525 ACMSTANDARDANSI (0x400) Warning: Unknown Class object 526 ACMSURFSTANDARDANSI (0x400) Warning: Unknown Class object 527 ACMFCFSTANDARDANSI (0x400) Warning: Unknown Class object 528 ACMWELDSTANDARDANSI (0x400) Warning: Unknown Class object 529 ACMIDSTANDARDANSI (0x400) Warning: Unknown Class object 530 ACMDATUMSTANDARDANSI (0x400) Warning: Unknown Class object 531 ACMBOMSTANDARDANSI (0x400) Warning: Unknown Class object 532 ACMDETAILSTANDARDANSI (0x400) Warning: Unknown Class object 533 ACMSECTIONSTANDARDANSI (0x400) Warning: Unknown Class object 534 ACMCENTERLINESTANDARDANSI (0x400) Warning: Unknown Class object 535 ACMTHREADLINESTANDARDANSI (0x400) Warning: Unknown Class object 536 ACAMGLAYSTD (0x400) Warning: Unknown Class object 537 ACAMGDIMSTD (0x400) Warning: Unknown Class object 538 ACAMGTITLESTD (0x400) Warning: Unknown Class object 539 ACMNOTESTANDARDANSI (0x400) Warning: Unknown Class object 540 ACMTAPERSTANDARDANSI (0x400) Warning: Unknown Class object 541 ACMANOOTATIONVIEWSTANDARDANSI (0x400) Warning: Unknown Class object 542 ACMSTANDARDDIN (0x400) Warning: Unknown Class object 543 AMDTEDGESTANDARDDIN (0x400) Warning: Unknown Class object 544 ACMSURFSTANDARDDIN (0x400) Warning: Unknown Class object 545 ACMFCFSTANDARDDIN (0x400) Warning: Unknown Class object 546 ACMWELDSTANDARDDIN (0x400) Warning: Unknown Class object 547 ACMIDSTANDARDDIN (0x400) Warning: Unknown Class object 548 ACMDATUMSTANDARDDIN (0x400) Warning: Unknown Class object 549 ACMBOMSTANDARDDIN (0x400) Warning: Unknown Class object 550 ACMDETAILSTANDARDDIN (0x400) Warning: Unknown Class object 551 ACMSECTIONSTANDARDDIN (0x400) Warning: Unknown Class object 552 ACMCENTERLINESTANDARDDIN (0x400) Warning: Unknown Class object 553 ACMNOTESTANDARDDIN (0x400) Warning: Unknown Class object 536 ACAMGLAYSTD (0x400) Warning: Unknown Class object 537 ACAMGDIMSTD (0x400) Warning: Unknown Class object 554 ACAMGHOLECHARTSTDDIN (0x400) Warning: Unknown Class object 538 ACAMGTITLESTD (0x400) Warning: Unknown Class object 555 ACMTHREADLINESTANDARDDIN (0x400) Warning: Unknown Class object 556 ACMTAPERSTANDARDDIN (0x400) Warning: Unknown Class object 557 ACMANOOTATIONVIEWSTANDARDDIN (0x400) Warning: Unknown Class object 558 ACMSTANDARDISO (0x400) Warning: Unknown Class object 559 AMDTEDGESTANDARDISO (0x400) Warning: Unknown Class object 560 ACMSURFSTANDARDISO (0x400) Warning: Unknown Class object 561 ACMFCFSTANDARDISO (0x400) Warning: Unknown Class object 562 ACMWELDSTANDARDISO (0x400) Warning: Unknown Class object 563 ACMIDSTANDARDISO (0x400) Warning: Unknown Class object 564 ACMDATUMSTANDARDISO (0x400) Warning: Unknown Class object 565 ACMBOMSTANDARDISO (0x400) Warning: Unknown Class object 536 ACAMGLAYSTD (0x400) Warning: Unknown Class object 537 ACAMGDIMSTD (0x400) Warning: Unknown Class object 538 ACAMGTITLESTD (0x400) Warning: Unknown Class object 566 ACMDETAILSTANDARDISO (0x400) Warning: Unknown Class object 567 ACMSECTIONSTANDARDISO (0x400) Warning: Unknown Class object 568 ACMCENTERLINESTANDARDISO (0x400) Warning: Unknown Class object 569 ACMTHREADLINESTANDARDISO (0x400) Warning: Unknown Class object 570 ACMNOTESTANDARDISO (0x400) Warning: Unknown Class object 571 ACMTAPERSTANDARDISO (0x400) Warning: Unknown Class object 572 ACMANOOTATIONVIEWSTANDARDISO (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 511 ACIMSYSVARMAN (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 512 ACIMINTSYSVAR (0x400) Warning: Unknown Class object 575 ACAMPROJECT (0x400) Warning: Unknown Class object 576 ACAMGRCOMPDEF (0x400) Warning: Unknown Class object 577 ACAMCOMPDEF (0x400) Warning: Unknown Class object 578 ACAMCOMPDEFMGR (0x400) Warning: Unknown Class object 579 AMCONTEXTMGR (0x400) Warning: Unknown Class object 580 ACAMCONTEXTMODELER (0x400) Warning: Unknown Class object 581 ACMDATADICTIONARY (0x400) Warning: Unknown Class object 588 CAMSSTRUCTBTNSTATE (0x400) Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 374/0 ERROR: bit_read_TU buffer overflow at 24, length 256 ERROR: bit_read_TU buffer overflow at 26, length 59495 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 39, length 256 ERROR: bit_read_TU buffer overflow at 39, length 256 ERROR: bit_read_BL: unexpected 2-bit code: '11' Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 375/0 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 24, length 250 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 36, length 256 ERROR: bit_read_TU buffer overflow at 37, length 256 ERROR: bit_read_BL: unexpected 2-bit code: '11' ERROR: bit_read_TU buffer overflow at 40, length 2112 Warning: Unknown Class object 590 DATALINK (0x480) ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 ERROR: bit_read_RC buffer overflow at 12115 Warning: Ignore invalid handleoff (@1170) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 425/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 426/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 428/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 429/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 431/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 432/0 Warning: Unknown Class object 603 ACSH_EXTRUSION_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 435/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 436/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 438/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 439/0 Warning: Unknown Class object 603 ACSH_EXTRUSION_CLASS (0x481) Warning: Unknown Class object 605 ACSH_BOX_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 443/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 444/0 Warning: Unknown Class object 605 ACSH_BOX_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 447/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 448/0 Warning: Unknown Class object 603 ACSH_EXTRUSION_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 451/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 452/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 454/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 455/0 Warning: Unhandled Class object 606 ACSH_SWEEP_CLASS (0x481) 459/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 460/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 461/0 Warning: Unhandled Class object 606 ACSH_SWEEP_CLASS (0x481) 463/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 464/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 465/0 Warning: Unknown Class object 603 ACSH_EXTRUSION_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 473/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 474/0 Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1119/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1120/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1121/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1122/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1123/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1124/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1125/0 Warning: thumbnail.size mismatch: 5261 != 0 Writing DXF file JW.dxf ```
Getting error while trying to convert from dwg to dxf file
https://api.github.com/repos/LibreDWG/libredwg/issues/201/comments
5
2020-02-06T06:38:53Z
2020-02-07T10:28:39Z
https://github.com/LibreDWG/libredwg/issues/201
560,810,789
201
[ "LibreDWG", "libredwg" ]
I am getting the following error while converting to json. Could you please check the dwg file which I have attached below? ``` dwgread -O JSON -o jw.json JW.dwg Warning: Unhandled Class object 501 MATERIAL (0x481) 14/0 Warning: Unhandled Class object 501 MATERIAL (0x481) 22/0 Warning: Unhandled Class object 501 MATERIAL (0x481) 30/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 39/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 40/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 41/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 42/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 43/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 44/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 45/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 46/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 47/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 48/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 49/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 50/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 51/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 52/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 53/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 54/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 55/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 56/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 57/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 58/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 59/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 60/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 61/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 62/0 Warning: Unstable Class object 504 TABLESTYLE (0xfff) 95/0 ERROR: TABLESTYLE r2010+ not yet implemented Warning: Unhandled Class object 506 ACDBSECTIONVIEWSTYLE (0x401) 99/0 Warning: Unhandled Class object 507 ACDBDETAILVIEWSTYLE (0x401) 101/0 Warning: Unknown Class object 509 ACMESCOPE (0x400) Warning: Unknown Class object 510 ACMECOMMANDHISTORY (0x400) Warning: Unknown Class object 511 ACIMSYSVARMAN (0x400) Warning: Unknown Class object 512 ACIMINTSYSVAR (0x400) Warning: Unknown Class object 513 ACMESTATEMGR (0x400) Warning: Unknown Class object 515 ACGREFMASTER (0x400) Warning: Unknown Class object 518 ACGREFACADMASTER (0x400) Warning: Unknown Class object 521 AMIMASTER (0x400) Warning: Unknown Class object 522 AMGSETTINGSOBJ (0x400) Warning: Unknown Class object 523 AMGOBJPROPCFG (0x400) Warning: Unknown Class object 522 AMGSETTINGSOBJ (0x400) Warning: Unknown Class object 524 MAPIAMMOUDLE (0x400) Warning: Unknown Class object 511 ACIMSYSVARMAN (0x400) Warning: Unknown Class object 525 ACMSTANDARDANSI (0x400) Warning: Unknown Class object 526 ACMSURFSTANDARDANSI (0x400) Warning: Unknown Class object 527 ACMFCFSTANDARDANSI (0x400) Warning: Unknown Class object 528 ACMWELDSTANDARDANSI (0x400) Warning: Unknown Class object 529 ACMIDSTANDARDANSI (0x400) Warning: Unknown Class object 530 ACMDATUMSTANDARDANSI (0x400) Warning: Unknown Class object 531 ACMBOMSTANDARDANSI (0x400) Warning: Unknown Class object 532 ACMDETAILSTANDARDANSI (0x400) Warning: Unknown Class object 533 ACMSECTIONSTANDARDANSI (0x400) Warning: Unknown Class object 534 ACMCENTERLINESTANDARDANSI (0x400) Warning: Unknown Class object 535 ACMTHREADLINESTANDARDANSI (0x400) Warning: Unknown Class object 536 ACAMGLAYSTD (0x400) Warning: Unknown Class object 537 ACAMGDIMSTD (0x400) Warning: Unknown Class object 538 ACAMGTITLESTD (0x400) Warning: Unknown Class object 539 ACMNOTESTANDARDANSI (0x400) Warning: Unknown Class object 540 ACMTAPERSTANDARDANSI (0x400) Warning: Unknown Class object 541 ACMANOOTATIONVIEWSTANDARDANSI (0x400) Warning: Unknown Class object 542 ACMSTANDARDDIN (0x400) Warning: Unknown Class object 543 AMDTEDGESTANDARDDIN (0x400) Warning: Unknown Class object 544 ACMSURFSTANDARDDIN (0x400) Warning: Unknown Class object 545 ACMFCFSTANDARDDIN (0x400) Warning: Unknown Class object 546 ACMWELDSTANDARDDIN (0x400) Warning: Unknown Class object 547 ACMIDSTANDARDDIN (0x400) Warning: Unknown Class object 548 ACMDATUMSTANDARDDIN (0x400) Warning: Unknown Class object 549 ACMBOMSTANDARDDIN (0x400) Warning: Unknown Class object 550 ACMDETAILSTANDARDDIN (0x400) Warning: Unknown Class object 551 ACMSECTIONSTANDARDDIN (0x400) Warning: Unknown Class object 552 ACMCENTERLINESTANDARDDIN (0x400) Warning: Unknown Class object 553 ACMNOTESTANDARDDIN (0x400) Warning: Unknown Class object 536 ACAMGLAYSTD (0x400) Warning: Unknown Class object 537 ACAMGDIMSTD (0x400) Warning: Unknown Class object 554 ACAMGHOLECHARTSTDDIN (0x400) Warning: Unknown Class object 538 ACAMGTITLESTD (0x400) Warning: Unknown Class object 555 ACMTHREADLINESTANDARDDIN (0x400) Warning: Unknown Class object 556 ACMTAPERSTANDARDDIN (0x400) Warning: Unknown Class object 557 ACMANOOTATIONVIEWSTANDARDDIN (0x400) Warning: Unknown Class object 558 ACMSTANDARDISO (0x400) Warning: Unknown Class object 559 AMDTEDGESTANDARDISO (0x400) Warning: Unknown Class object 560 ACMSURFSTANDARDISO (0x400) Warning: Unknown Class object 561 ACMFCFSTANDARDISO (0x400) Warning: Unknown Class object 562 ACMWELDSTANDARDISO (0x400) Warning: Unknown Class object 563 ACMIDSTANDARDISO (0x400) Warning: Unknown Class object 564 ACMDATUMSTANDARDISO (0x400) Warning: Unknown Class object 565 ACMBOMSTANDARDISO (0x400) Warning: Unknown Class object 536 ACAMGLAYSTD (0x400) Warning: Unknown Class object 537 ACAMGDIMSTD (0x400) Warning: Unknown Class object 538 ACAMGTITLESTD (0x400) Warning: Unknown Class object 566 ACMDETAILSTANDARDISO (0x400) Warning: Unknown Class object 567 ACMSECTIONSTANDARDISO (0x400) Warning: Unknown Class object 568 ACMCENTERLINESTANDARDISO (0x400) Warning: Unknown Class object 569 ACMTHREADLINESTANDARDISO (0x400) Warning: Unknown Class object 570 ACMNOTESTANDARDISO (0x400) Warning: Unknown Class object 571 ACMTAPERSTANDARDISO (0x400) Warning: Unknown Class object 572 ACMANOOTATIONVIEWSTANDARDISO (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 511 ACIMSYSVARMAN (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 573 ACIMSTRSYSVAR (0x400) Warning: Unknown Class object 512 ACIMINTSYSVAR (0x400) Warning: Unknown Class object 575 ACAMPROJECT (0x400) Warning: Unknown Class object 576 ACAMGRCOMPDEF (0x400) Warning: Unknown Class object 577 ACAMCOMPDEF (0x400) Warning: Unknown Class object 578 ACAMCOMPDEFMGR (0x400) Warning: Unknown Class object 579 AMCONTEXTMGR (0x400) Warning: Unknown Class object 580 ACAMCONTEXTMODELER (0x400) Warning: Unknown Class object 581 ACMDATADICTIONARY (0x400) Warning: Unknown Class object 588 CAMSSTRUCTBTNSTATE (0x400) Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 374/0 Warning: Unstable Class object 502 VISUALSTYLE (0xfff) 375/0 Warning: Unknown Class object 590 DATALINK (0x480) Warning: Ignore invalid handleoff (@1170) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 425/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 426/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 428/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 429/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 431/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 432/0 Warning: Unknown Class object 603 ACSH_EXTRUSION_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 435/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 436/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 438/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 439/0 Warning: Unknown Class object 603 ACSH_EXTRUSION_CLASS (0x481) Warning: Unknown Class object 605 ACSH_BOX_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 443/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 444/0 Warning: Unknown Class object 605 ACSH_BOX_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 447/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 448/0 Warning: Unknown Class object 603 ACSH_EXTRUSION_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 451/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 452/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 454/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 455/0 Warning: Unhandled Class object 606 ACSH_SWEEP_CLASS (0x481) 459/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 460/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 461/0 Warning: Unhandled Class object 606 ACSH_SWEEP_CLASS (0x481) 463/0 Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 464/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 465/0 Warning: Unknown Class object 603 ACSH_EXTRUSION_CLASS (0x481) Warning: Unhandled Class object 592 ACAD_EVALUATION_GRAPH (0x481) 473/0 Warning: Unhandled Class object 604 ACSH_HISTORY_CLASS (0x481) 474/0 Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unknown Class entity 609 SURFACE (0xfff) Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1119/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1120/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1121/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1122/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1123/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1124/0 Warning: Unhandled Class object 610 RAPIDRTRENDERSETTINGS (0x400) 1125/0 Warning: thumbnail.size mismatch: 5261 != 0 SUCCESS ``` [JW.zip](https://github.com/LibreDWG/libredwg/files/4163477/JW.zip)
Getting error while trying to convert dwg to json
https://api.github.com/repos/LibreDWG/libredwg/issues/200/comments
4
2020-02-06T06:13:16Z
2020-02-11T08:31:01Z
https://github.com/LibreDWG/libredwg/issues/200
560,802,286
200
[ "LibreDWG", "libredwg" ]
the output is >2x as long, and is garbled
json: FIELD_BINARY (e.g. preview) is broken
https://api.github.com/repos/LibreDWG/libredwg/issues/199/comments
0
2020-02-05T14:58:02Z
2020-02-06T10:37:57Z
https://github.com/LibreDWG/libredwg/issues/199
560,427,423
199
[ "LibreDWG", "libredwg" ]
Add json EED and XRECORD.xdata support (write and read)
https://api.github.com/repos/LibreDWG/libredwg/issues/198/comments
1
2020-02-03T08:19:28Z
2020-02-03T22:28:29Z
https://github.com/LibreDWG/libredwg/issues/198
558,917,410
198
[ "LibreDWG", "libredwg" ]
Went from 422 fuzzing crashes down to 43 for now. The biggest leaks are gone are also, but there are still a few.
remaining injson fuzzing crashes and leaks
https://api.github.com/repos/LibreDWG/libredwg/issues/197/comments
3
2020-02-01T10:44:45Z
2020-02-03T19:05:08Z
https://github.com/LibreDWG/libredwg/issues/197
558,522,135
197
[ "LibreDWG", "libredwg" ]
dwgfilter/dwgwrite json may choose to add or delete array entries without adjusting the accompanying num_X field. We need to adjust it then, and don't leave NULL array entries instead. Also warn then.
in_json: adjust wrong num_X sizes, when differing
https://api.github.com/repos/LibreDWG/libredwg/issues/196/comments
1
2020-01-29T12:23:43Z
2020-01-31T16:37:21Z
https://github.com/LibreDWG/libredwg/issues/196
556,828,174
196
[ "LibreDWG", "libredwg" ]
FreeCAD now allows to export dwg's with libredwg if libredwg is available. We cannot make libredwg a hard dependency because of license issues (lgpl2 vs gpl3) but using it as an optional dependency should not be a problem. We use the dwg2dxf command for importing dwgs and dxf2dwg for the export. The import seems to work for most objects. But the export has bigger issues: ``` Warning: dxf2dwg is still highly experimental. Reading DXF file /tmp/tmp6_fiede5/test.dxf Warning: Misleading LTYPE_CONTROL.num_entries 0 for 0th entry Warning: Misleading LTYPE_CONTROL.num_entries 0 for 0th entry Warning: Misleading LAYER_CONTROL.num_entries 3 for 0th entry Warning: Misleading LAYER_CONTROL.num_entries 4 for 1th entry Warning: Misleading LAYER_CONTROL.num_entries 5 for 2th entry Warning: Misleading STYLE_CONTROL.num_entries 2 for 0th entry Warning: Misleading STYLE_CONTROL.num_entries 3 for 1th entry Warning: Misleading APPID_CONTROL.num_entries 2 for 0th entry Warning: Misleading APPID_CONTROL.num_entries 3 for 1th entry Warning: Misleading DIMSTYLE_CONTROL.num_entries 2 for 0th entry Warning: Unknown DXF code 287 for DIMSTYLE Warning: Misleading BLOCK_CONTROL.num_entries 5 for 0th entry Warning: Misleading BLOCK_CONTROL.num_entries 5 for 0th entry Warning: Unknown HEADER.DIMSTYLE STANDARD dxf:3 Warning: Unknown HEADER.CMLSTYLE STANDARD dxf:2 ERROR: Unexpected DXF end-of-file Warning: Unknown HEADER.DIMSTYLE STANDARD dxf:3 Warning: Unknown HEADER.CMLSTYLE STANDARD dxf:2 Warning: Object handle not found, 1/1 in 33 objects Warning: Object handle not found, 12/C in 33 objects Writing DWG file /home/lo/Schreibtisch/test.dwg ``` So regarding this message dxf2dwg is not ready to use yet. Would be nice to get some feedback how much is missing for a working dxf2dwg and if there is anything testers/users can do to accelerate this process? some version info ``` libredwg 0.10.1.2729 OS: Ubuntu 18.04.3 LTS (ubuntu:GNOME/ubuntu) ```
dwg export with freecad
https://api.github.com/repos/LibreDWG/libredwg/issues/195/comments
8
2020-01-28T10:55:40Z
2020-07-11T09:21:46Z
https://github.com/LibreDWG/libredwg/issues/195
556,130,566
195
[ "LibreDWG", "libredwg" ]
we only handle structs, not unions. same offset, different name. add as "lt'index" and "lt.ltype" keys to dynapi. Needed for in_json. But note that with added unions, the fields_size calculation is wrong. Maybe we'd need a seperate struct_size then. The calculation also fails on cygwin32. ``` { 'type' => { 'context' => '../src/../include/dwg.h(2361)', 'align' => 1, 'size' => 8, 'type' => 'union', 'pack' => 0, 'declarations' => [ { 'declarators' => [ { 'declarator' => 'index', 'size' => 2, 'offset' => 0 } ], 'type' => 'BITCODE_BSd' }, { 'type' => 'BITCODE_H', 'declarators' => [ { 'size' => 8, 'declarator' => 'ltype', 'offset' => 0 } ] } ] }, 'declarators' => [ { 'offset' => 50, 'size' => 8, 'declarator' => 'lt' } ] } ```
add union support to dynapi: MLINESTYLE.line.lt.{index,ltype}
https://api.github.com/repos/LibreDWG/libredwg/issues/194/comments
1
2020-01-26T08:55:37Z
2020-01-27T15:01:38Z
https://github.com/LibreDWG/libredwg/issues/194
555,199,628
194
[ "LibreDWG", "libredwg" ]
Same as with indxf. No need for a free exception then, and needs much less memory.
Use a global static NULL_HANDLE
https://api.github.com/repos/LibreDWG/libredwg/issues/193/comments
0
2020-01-18T17:58:04Z
2020-01-18T17:58:28Z
https://github.com/LibreDWG/libredwg/issues/193
551,802,287
193
[ "LibreDWG", "libredwg" ]
There should not be duplicate 0.X.X handles. On decode and encode. Skip this object then. Maybe add this feature behind an extra `--audit` flag, because it could be expensive to add another owners hash_map, as duplicate of the HANDLES section map. Or being forced to do linear search there.
check duplicate owner handles
https://api.github.com/repos/LibreDWG/libredwg/issues/192/comments
0
2020-01-17T12:01:32Z
2020-07-11T09:22:15Z
https://github.com/LibreDWG/libredwg/issues/192
551,376,627
192
[ "LibreDWG", "libredwg" ]
LibreDWG does not leak when decoding valid DWG's. But with certain illegal DWG's created by fuzzing we still leak some. Fix these.
decode fuzzing leaks
https://api.github.com/repos/LibreDWG/libredwg/issues/191/comments
1
2020-01-17T09:48:40Z
2020-01-27T16:41:09Z
https://github.com/LibreDWG/libredwg/issues/191
551,311,597
191
[ "LibreDWG", "libredwg" ]
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`.
Some heap_overflow bug
https://api.github.com/repos/LibreDWG/libredwg/issues/190/comments
5
2020-01-16T11:51:56Z
2020-07-20T02:16:17Z
https://github.com/LibreDWG/libredwg/issues/190
550,758,758
190
[ "LibreDWG", "libredwg" ]
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`.
Some NULL pointer bugs
https://api.github.com/repos/LibreDWG/libredwg/issues/189/comments
58
2020-01-16T11:36:57Z
2020-07-20T02:15:32Z
https://github.com/LibreDWG/libredwg/issues/189
550,751,408
189
[ "LibreDWG", "libredwg" ]
Hi, After fuzzing libredwg, I found the following bugs on the latest commit on master. Command: ./dwgbmp $PoC **1.NULL pointer dereference in read_2004_compressed_section ../../src/decode.c:2417** POC: https://github.com/linhlhq/research/blob/master/PoCs/libreDWG_4c26d37/id:000012%2Csig:06%2Csrc:002489%2Cop:havoc%2Crep:16 ``` ================================================================= ==20486==ERROR: AddressSanitizer: SEGV on unknown address 0x62904165558b (pc 0x7fa1bce115c5 bp 0x7fff8e06b350 sp 0x7fff8e06aab8 T0) ==20486==The signal is caused by a READ memory access. #0 0x7fa1bce115c4 (/lib/x86_64-linux-gnu/libc.so.6+0xbb5c4) #1 0x7fa1bd55e6ce (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x796ce) #2 0x5634364fc7b6 in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34 #3 0x5634364fc7b6 in read_2004_compressed_section ../../src/decode.c:2417 #4 0x563436ac5dd2 in read_2004_section_summary ../../src/decode.c:2785 #5 0x563436ac5dd2 in decode_R2004 ../../src/decode.c:3352 #6 0x563436ad208d in dwg_decode ../../src/decode.c:246 #7 0x563436464fae in dwg_read_file ../../src/dwg.c:211 #8 0x5634364639d0 in get_bmp ../../programs/dwgbmp.c:111 #9 0x563436463066 in main ../../programs/dwgbmp.c:280 #10 0x7fa1bcd77b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #11 0x5634364636c9 in _start (/home/user/linhlhq/libredwg/asan_build/programs/dwgbmp+0x28f6c9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0xbb5c4) ```
Several bugs found by fuzzing
https://api.github.com/repos/LibreDWG/libredwg/issues/188/comments
15
2020-01-15T04:37:59Z
2020-01-16T23:22:04Z
https://github.com/LibreDWG/libredwg/issues/188
549,961,224
188
[ "LibreDWG", "libredwg" ]
it is used as a library after all. and many asserts can be caused by wrong (fuzzed) user-data.
change most indxf asserts to errors
https://api.github.com/repos/LibreDWG/libredwg/issues/187/comments
0
2020-01-14T12:48:46Z
2020-07-11T09:19:53Z
https://github.com/LibreDWG/libredwg/issues/187
549,545,546
187
[ "LibreDWG", "libredwg" ]
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 ```
NULL pointer deference
https://api.github.com/repos/LibreDWG/libredwg/issues/186/comments
3
2020-01-14T12:30:37Z
2020-07-20T02:14:44Z
https://github.com/LibreDWG/libredwg/issues/186
549,536,132
186
[ "LibreDWG", "libredwg" ]
similar to json. and vice versa embed \U+XXXX wchars in ASCII strings when encoding to <r2007 also for FIELD_T check the version and from_version and convert on encode accordingly. Also output modules, but they do use utf8 usually. On decode and importers the version == from_version, there's no known target version yet.
convert unicode chars when saveas <r2007 as \U+XXXX
https://api.github.com/repos/LibreDWG/libredwg/issues/185/comments
0
2020-01-14T06:12:34Z
2020-01-15T13:50:18Z
https://github.com/LibreDWG/libredwg/issues/185
549,355,743
185
[ "LibreDWG", "libredwg" ]
git does not save empty diffs for bumped timestamps. whenever we change a dynapi dependency, such as dwg.h 1) we'd need to bump the generated files also. easiest add the PACKAGE_VERSION to all 3 generated files: test/unit-testing/dynapi_test.c src/dynapi.c doc/dynapi.texi make dist frequently fails when it calls gen-dynapi and then make doc on travis. 2nd variant) add a regen-dynapi target, with a warning when needed.
touch the dynapi generated files, add the version
https://api.github.com/repos/LibreDWG/libredwg/issues/184/comments
0
2020-01-13T11:26:04Z
2020-01-16T23:22:52Z
https://github.com/LibreDWG/libredwg/issues/184
548,868,394
184
[ "LibreDWG", "libredwg" ]
I found a bug in dwg2dxf. POC: https://github.com/linhlhq/research/blob/master/PoCs/libreDWG_69b5609/id:000000%2Csig:06%2Csrc:000001%2Cop:flip4%2Cpos:27167 ``` ==29243==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6140000005b2 at pc 0x7ffafa9dc77a bp 0x7ffcc19b07e0 sp 0x7ffcc19aff88 WRITE of size 126 at 0x6140000005b2 thread T0 #0 0x7ffafa9dc779 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x79779) #1 0x561777b62e9c in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34 #2 0x561777b62e9c in read_2004_compressed_section ../../src/decode.c:2379 #3 0x56177811f8af in read_2004_section_preview ../../src/decode.c:2778 #4 0x56177811f8af in decode_R2004 ../../src/decode.c:2965 #5 0x56177812c264 in dwg_decode ../../src/decode.c:245 #6 0x561777adb7c2 in dwg_read_file ../../src/dwg.c:211 #7 0x561777ad9550 in main ../../programs/dwg2dxf.c:255 #8 0x7ffafa1f5b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #9 0x561777adaa69 in _start (/home/user/linhlhq/libredwg/asan_build/programs/dwg2dxf+0x363a69) Address 0x6140000005b2 is a wild pointer. SUMMARY: AddressSanitizer: heap-buffer-overflow (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x79779) Shadow bytes around the buggy address: 0x0c287fff8060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c287fff8070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c287fff8080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c287fff8090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c287fff80a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c287fff80b0: fa fa fa fa fa fa[fa]fa fa fa fa fa fa fa fa fa 0x0c287fff80c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c287fff80d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c287fff80e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c287fff80f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c287fff8100: 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 ==29243==ABORTING ```
Heap over flow
https://api.github.com/repos/LibreDWG/libredwg/issues/183/comments
2
2020-01-13T02:49:42Z
2020-01-16T12:12:04Z
https://github.com/LibreDWG/libredwg/issues/183
548,674,750
183
[ "LibreDWG", "libredwg" ]
Hi, After fuzzing libredwg, I found the following bugs on the latest commit on master. Command: ./dwg2SVG $PoC **1.NULL pointer dereference in htmlescape ../../programs/escape.c:29** POC: https://github.com/linhlhq/research/blob/master/PoCs/libreDWG_7b9cb829/id:000013%2Csig:06%2Csrc:000000%2Cop:flip1%2Cpos:46417 ASAN says: ``` ================================================================= ==19607==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f433bb56646 bp 0x7ffed1176670 sp 0x7ffed1175de8 T0) ==19607==The signal is caused by a READ memory access. ==19607==Hint: address points to the zero page. #0 0x7f433bb56645 (/lib/x86_64-linux-gnu/libc.so.6+0xb1645) #1 0x7f433c28557b (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x5157b) #2 0x55950b27cdd4 in htmlescape ../../programs/escape.c:29 #3 0x55950b27abb5 in output_TEXT ../../programs/dwg2SVG.c:113 #4 0x55950b27abb5 in output_object ../../programs/dwg2SVG.c:312 #5 0x55950b27abb5 in output_BLOCK_HEADER ../../programs/dwg2SVG.c:371 #6 0x55950b278477 in output_SVG ../../programs/dwg2SVG.c:411 #7 0x55950b278477 in main ../../programs/dwg2SVG.c:525 #8 0x7f433bac6b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #9 0x55950b278d19 in _start (/home/user/linhlhq/libredwg/asan_build/programs/dwg2SVG+0x27ad19) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0xb1645) ==19607==ABORTING ```
Several bugs found by fuzzing
https://api.github.com/repos/LibreDWG/libredwg/issues/182/comments
9
2020-01-10T06:17:10Z
2020-01-16T12:12:04Z
https://github.com/LibreDWG/libredwg/issues/182
547,887,727
182
[ "LibreDWG", "libredwg" ]
use logging.h throughout, get rid of all remaining rogue fprintf and stderr in `src/`, which need to be overridable via logging.h ok in programs and examples library users want to catch fprintf and/or stderr.
consistent logging handlers, no fprintf, stderr in the lib
https://api.github.com/repos/LibreDWG/libredwg/issues/181/comments
0
2020-01-09T12:19:42Z
2020-01-09T14:34:51Z
https://github.com/LibreDWG/libredwg/issues/181
547,444,590
181
[ "LibreDWG", "libredwg" ]
still broken if num_eed > 0 see dwgrewrite examples
encode EED
https://api.github.com/repos/LibreDWG/libredwg/issues/180/comments
1
2020-01-06T07:48:30Z
2020-01-08T07:42:20Z
https://github.com/LibreDWG/libredwg/issues/180
545,590,707
180
[ "LibreDWG", "libredwg" ]
Hi, After fuzzing libredwg, I found the following bugs on the latest commit on master. Command: ./dwg2svg2 $PoC **1.heap-buffer-overflow in read_pages_map ../../src/decode_r2007.c:1007** POC: https://github.com/linhlhq/research/blob/master/PoCs/libreDWG_0.9.3.2564/id:000239%2Csig:06%2Csrc:007083%2Cop:havoc%2Crep:4 ASAN says: ``` ==4335==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x611000000258 at pc 0x55f9e1e04e05 bp 0x7ffc92f94a40 sp 0x7ffc92f94a30 READ of size 8 at 0x611000000258 thread T0 #0 0x55f9e1e04e04 in read_pages_map ../../src/decode_r2007.c:1007 #1 0x55f9e1e04e04 in read_r2007_meta_data ../../src/decode_r2007.c:1774 #2 0x55f9e1dd66d7 in decode_R2007 ../../src/decode.c:2973 #3 0x55f9e1dd66d7 in dwg_decode ../../src/decode.c:241 #4 0x55f9e177b466 in dwg_read_file ../../src/dwg.c:210 #5 0x55f9e1776d4b in test_SVG ../../examples/dwg2svg2.c:116 #6 0x55f9e1776d4b in main ../../examples/dwg2svg2.c:501 #7 0x7f595f806b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #8 0x55f9e17779a9 in _start (/home/user/linhlhq/libredwg/asan_build/examples/dwg2svg2+0x2d59a9) 0x61100000025c is located 0 bytes to the right of 220-byte region [0x611000000180,0x61100000025c) allocated by thread T0 here: #0 0x7f5960052d38 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded38) #1 0x55f9e1de73be in read_system_page ../../src/decode_r2007.c:635 SUMMARY: AddressSanitizer: heap-buffer-overflow ../../src/decode_r2007.c:1007 in read_pages_map Shadow bytes around the buggy address: 0x0c227fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c227fff8000: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 0x0c227fff8010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c227fff8020: 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa fa 0x0c227fff8030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c227fff8040: 00 00 00 00 00 00 00 00 00 00 00[04]fa fa fa fa 0x0c227fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c227fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c227fff8070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c227fff8080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c227fff8090: 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 ==4335==ABORTING ```
Several bugs found by fuzzing
https://api.github.com/repos/LibreDWG/libredwg/issues/179/comments
7
2020-01-03T03:19:25Z
2020-01-16T12:12:04Z
https://github.com/LibreDWG/libredwg/issues/179
544,834,443
179
[ "LibreDWG", "libredwg" ]
Hi, I got some bugs, and I tested on master branch and version **0.9.3**. There are **3 heap overflow**, **2 NULL pointer deference**, **1 denial of service**, **1 stack overflow** (this bug causes memory leak in master branch) in that. Compile with **ASAN** and use **dwgrewrite** to repro that. Hear are some details:
Several bugs need to be fixed.
https://api.github.com/repos/LibreDWG/libredwg/issues/178/comments
18
2019-12-31T06:04:23Z
2020-01-16T12:12:03Z
https://github.com/LibreDWG/libredwg/issues/178
544,098,538
178
[ "LibreDWG", "libredwg" ]
I read a dwg file which layer name is all Chinese. the result of reading is error codes, is there any way to convert them to normal?
can't read Chinese layer name
https://api.github.com/repos/LibreDWG/libredwg/issues/177/comments
2
2019-12-29T10:40:59Z
2020-01-06T07:55:36Z
https://github.com/LibreDWG/libredwg/issues/177
543,354,342
177
[ "LibreDWG", "libredwg" ]
Hi, After fuzzing libredwg, I found the following bugs on the latest commit on master. Command: dwg2dxf $PoC **1.Crafted input will lead to Memory allocation failed in dwg_decode_SPLINE_private (src/dwg.spec:1639)** PoC: https://github.com/linhlhq/research/blob/master/PoCs/libreDWG/id:000000%2Csig:06%2Csrc:000000%2Cop:flip1%2Cpos:36317 ASAN says: ``` ==6231==ERROR: AddressSanitizer failed to allocate 0xd54f86000 (57260138496) bytes of LargeMmapAllocator (error code: 12) ==6231==Process memory map follows: 0x00007fff7000-0x00008fff7000 0x00008fff7000-0x02008fff7000 0x02008fff7000-0x10007fff8000 0x55f7ba14f000-0x55f7bb643000 /home/user/linhlhq/libredwg/obj-afl/programs/dwg2dxf 0x55f7bb843000-0x55f7bb85b000 /home/user/linhlhq/libredwg/obj-afl/programs/dwg2dxf 0x55f7bb85b000-0x55f7bb93f000 /home/user/linhlhq/libredwg/obj-afl/programs/dwg2dxf 0x55f7bb93f000-0x55f7bb943000 ..... 0x7fd78077d000-0x7fd780794000 /lib/x86_64-linux-gnu/libgcc_s.so.1 0x7fd780794000-0x7fd780993000 /lib/x86_64-linux-gnu/libgcc_s.so.1 0x7fd780993000-0x7fd780994000 /lib/x86_64-linux-gnu/libgcc_s.so.1 0x7fd780994000-0x7fd780995000 /lib/x86_64-linux-gnu/libgcc_s.so.1 0x7fd780995000-0x7fd7809af000 /lib/x86_64-linux-gnu/libpthread-2.27.so 0x7fd7809af000-0x7fd780bae000 /lib/x86_64-linux-gnu/libpthread-2.27.so 0x7fd780bae000-0x7fd780baf000 /lib/x86_64-linux-gnu/libpthread-2.27.so 0x7fd780baf000-0x7fd780bb0000 /lib/x86_64-linux-gnu/libpthread-2.27.so 0x7fd780bb0000-0x7fd780bb4000 0x7fd780bb4000-0x7fd780bbb000 /lib/x86_64-linux-gnu/librt-2.27.so 0x7fd780bbb000-0x7fd780dba000 /lib/x86_64-linux-gnu/librt-2.27.so 0x7fd780dba000-0x7fd780dbb000 /lib/x86_64-linux-gnu/librt-2.27.so 0x7fd780dbb000-0x7fd780dbc000 /lib/x86_64-linux-gnu/librt-2.27.so 0x7fd780dbc000-0x7fd780dbf000 /lib/x86_64-linux-gnu/libdl-2.27.so 0x7fd780dbf000-0x7fd780fbe000 /lib/x86_64-linux-gnu/libdl-2.27.so 0x7fd780fbe000-0x7fd780fbf000 /lib/x86_64-linux-gnu/libdl-2.27.so 0x7fd780fbf000-0x7fd780fc0000 /lib/x86_64-linux-gnu/libdl-2.27.so 0x7fd780fc0000-0x7fd7811a7000 /lib/x86_64-linux-gnu/libc-2.27.so 0x7fd7811a7000-0x7fd7813a7000 /lib/x86_64-linux-gnu/libc-2.27.so 0x7fd7813a7000-0x7fd7813ab000 /lib/x86_64-linux-gnu/libc-2.27.so 0x7fd7813ab000-0x7fd7813ad000 /lib/x86_64-linux-gnu/libc-2.27.so 0x7fd7813ad000-0x7fd7813b1000 0x7fd7813b1000-0x7fd78154e000 /lib/x86_64-linux-gnu/libm-2.27.so 0x7fd78154e000-0x7fd78174d000 /lib/x86_64-linux-gnu/libm-2.27.so 0x7fd78174d000-0x7fd78174e000 /lib/x86_64-linux-gnu/libm-2.27.so 0x7fd78174e000-0x7fd78174f000 /lib/x86_64-linux-gnu/libm-2.27.so 0x7fd78174f000-0x7fd78189f000 /usr/lib/x86_64-linux-gnu/libasan.so.4.0.0 0x7fd78189f000-0x7fd781a9f000 /usr/lib/x86_64-linux-gnu/libasan.so.4.0.0 0x7fd781a9f000-0x7fd781aa2000 /usr/lib/x86_64-linux-gnu/libasan.so.4.0.0 0x7fd781aa2000-0x7fd781aa5000 /usr/lib/x86_64-linux-gnu/libasan.so.4.0.0 0x7fd781aa5000-0x7fd78270a000 0x7fd78270a000-0x7fd782731000 /lib/x86_64-linux-gnu/ld-2.27.so 0x7fd78279d000-0x7fd782927000 0x7fd782927000-0x7fd782931000 0x7fd782931000-0x7fd782932000 /lib/x86_64-linux-gnu/ld-2.27.so 0x7fd782932000-0x7fd782933000 /lib/x86_64-linux-gnu/ld-2.27.so 0x7fd782933000-0x7fd782934000 0x7fffa34fe000-0x7fffa351f000 [stack] 0x7fffa35bc000-0x7fffa35bf000 [vvar] 0x7fffa35bf000-0x7fffa35c1000 [vdso] 0xffffffffff600000-0xffffffffff601000 [vsyscall] ==6231==End of process memory map. ==6231==AddressSanitizer CHECK failed: ../../../../src/libsanitizer/sanitizer_common/sanitizer_common.cc:118 "((0 && "unable to mmap")) != (0)" (0x0, 0x0) #0 0x7fd781838c02 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe9c02) #1 0x7fd781857595 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x108595) #2 0x7fd781842492 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xf3492) #3 0x7fd78184e8a5 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xff8a5) #4 0x7fd78177b8f1 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x2c8f1) #5 0x7fd78177604b (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x2704b) #6 0x7fd78182dd00 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded00) #7 0x55f7ba79bec8 in dwg_decode_SPLINE_private ../../src/dwg.spec:1639 #8 0x55f7ba7a4e19 in dwg_decode_SPLINE ../../src/dwg.spec:1585 #9 0x55f7bab4b89b in dwg_decode_add_object ../../src/decode.c:4738 #10 0x55f7bab5ef28 in decode_R13_R2000 ../../src/decode.c:1216 #11 0x55f7bab9161a in dwg_decode ../../src/decode.c:239 #12 0x55f7ba533f7a in dwg_read_file ../../src/dwg.c:206 #13 0x55f7ba53232d in main ../../programs/dwg2dxf.c:255 #14 0x7fd780fe1b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #15 0x55f7ba5332e9 in _start (/home/user/linhlhq/libredwg/obj-afl/programs/dwg2dxf+0x3e42e9) ``` Thanks, Linhlhq from Infiniti Team, VinCSS (a member of Vingroup) # #
Several bugs found by fuzzing
https://api.github.com/repos/LibreDWG/libredwg/issues/176/comments
24
2019-12-24T03:44:32Z
2020-01-16T12:12:03Z
https://github.com/LibreDWG/libredwg/issues/176
541,977,765
176
[ "LibreDWG", "libredwg" ]
I am trying to build libredwg docker image based on the following dockerfile: ``` FROM debian:sid RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections RUN sed -i 's/archive/ru.archive/g' /etc/apt/sources.list \ && apt-get update \ && apt-get install -y git make gcc autoconf libtool \ pkg-config libxml2-dev dejagnu python-dev swig \ zlib1g-dev texinfo \ && apt-get clean \ && rm -rf /var/lib/{apt,dpkg,cache,log}/ RUN git clone git://git.sv.gnu.org/libredwg.git ``` ) In the interactive container I try to execute the following: ``` sh ./autogen.sh CFLAGS=-I/usr/include/libxml2 ./configure ./configure make make check ``` Which gives: Warnings during `make`: ``` bits.c:1160:2: warning: #warning x86_64 gcc-9.2 codegen is seriously broken! better use an older version [-Wcpp] 1160 | #warning x86_64 gcc-9.2 codegen is seriously broken! better use an older version ``` ``` /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output may be truncated copying 70 bytes from a string of length 79 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` Errors during `make check`: ``` make check-TESTS make[4]: Entering directory '/home/libredwg/test/xmlsuite' Traceback (most recent call last): File "./check.py", line 8, in <module> from helper import * File "/home/libredwg/test/xmlsuite/helper.py", line 2, in <module> import libxml2 ImportError: No module named libxml2 FAIL: check.py ``` Additional warnings during `make check`: ``` tests_common.h:28:1: warning: 'ms_printf' is an unrecognized format function type [-Wformat=] 28 | static void fail (const char *fmt, ...) ATTRIBUTE_FORMAT (1, 2); tests_common.h:52:3: warning: function 'ok' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 52 | vsnprintf (buffer, sizeof (buffer), fmt, ap); tests_common.h: In function 'fail': tests_common.h:72:3: warning: function 'fail' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 72 | vsnprintf (buffer, sizeof (buffer), fmt, ap); In file included from hash_test.c:6: tests_common.h:28:1: warning: 'ms_printf' is an unrecognized format function type [-Wformat=] 28 | static void fail (const char *fmt, ...) ATTRIBUTE_FORMAT (1, 2); ``` Could you please help to make a good docker image where I could test dwg to svg functionality and figure what is wrong?
Docker image make check fails on import libxml2
https://api.github.com/repos/LibreDWG/libredwg/issues/175/comments
4
2019-12-20T09:42:37Z
2020-01-06T07:52:35Z
https://github.com/LibreDWG/libredwg/issues/175
540,894,997
175
[ "LibreDWG", "libredwg" ]
https://github.com/LibreDWG/libredwg/blob/785df5f3b9b38dd383fa205791aedd9cb9302b4c/src/decode.c#L2552 https://github.com/LibreDWG/libredwg/blob/785df5f3b9b38dd383fa205791aedd9cb9302b4c/src/decode_r2007.c#L1594 Is a type casting (int) missed?
Type casting inconsistency
https://api.github.com/repos/LibreDWG/libredwg/issues/174/comments
1
2019-12-11T16:47:09Z
2020-01-06T07:52:35Z
https://github.com/LibreDWG/libredwg/issues/174
536,491,736
174
[ "LibreDWG", "libredwg" ]
A NULL check on `mspace ` is missing here: https://github.com/LibreDWG/libredwg/blob/785df5f3b9b38dd383fa205791aedd9cb9302b4c/src/out_dxfb.c#L1869-L1879 While it is done here, which is a similar case: https://github.com/LibreDWG/libredwg/blob/785df5f3b9b38dd383fa205791aedd9cb9302b4c/src/out_dxf.c#L2261-L2274 `dwg_model_space_object ` might return `dwg->header_vars.BLOCK_RECORD_MSPACE->obj` so I think the semantic is the same. https://github.com/LibreDWG/libredwg/blob/007ebf45479ef7ecd4de235a0be881b4527cc872/src/dwg.c#L861
Missing NULL check
https://api.github.com/repos/LibreDWG/libredwg/issues/173/comments
0
2019-12-11T16:32:56Z
2019-12-26T21:16:00Z
https://github.com/LibreDWG/libredwg/issues/173
536,483,875
173
[ "LibreDWG", "libredwg" ]
I think a null check on `dwg->dwg_class` is missing here: https://github.com/LibreDWG/libredwg/blob/785df5f3b9b38dd383fa205791aedd9cb9302b4c/src/print.c#L588-L594 While it is done here, which is a similar cases: https://github.com/LibreDWG/libredwg/blob/785df5f3b9b38dd383fa205791aedd9cb9302b4c/src/free.c#L727-L732
Potential Null dereference
https://api.github.com/repos/LibreDWG/libredwg/issues/172/comments
2
2019-12-11T16:13:30Z
2020-01-16T12:12:02Z
https://github.com/LibreDWG/libredwg/issues/172
536,472,254
172
[ "LibreDWG", "libredwg" ]
dwgrewrite.c present in programs reads a dwg file and rewrites. using `dwg_write_file` results in errors and the exported file cannot be opened. `Reading DWG file ../libredwg/test/test-data/sample_2000.dwg ERROR: Second header num_handlers > 16: 17259 Writing DWG file sample_2000-rewrite.dwg Warning: Wrong object size: 18240 + 182 = 18422 != 18431: -9 off Warning: Wrong object size: 18446 + 30 = 18476 != 18477: -1 off Warning: Wrong object size: 18498 + 22 = 18520 != 18521: -1 off Warning: Wrong object size: 18524 + 37 = 18561 != 18565: -4 off Warning: Wrong object size: 18565 + 19 = 18584 != 18585: -1 off Warning: Wrong object size: 18588 + 279 = 18867 != 18870: -3 off Warning: Wrong object size: 18871 + 279 = 19150 != 19153: -3 off Warning: Wrong object size: 19154 + 293 = 19447 != 19449: -2 off Warning: Wrong object size: 19451 + 29 = 19480 != 19481: -1 off Warning: Wrong object size: 19484 + 62 = 19546 != 19549: -3 off Warning: Wrong object size: 19571 + 46 = 19617 != 19620: -3 off Warning: Wrong object size: 19621 + 39 = 19660 != 19665: -5 off Warning: Wrong object size: 19664 + 29 = 19693 != 19694: -1 off Warning: Wrong object size: 19717 + 181 = 19898 != 19907: -9 off Warning: Wrong object size: 19902 + 118 = 20020 != 20025: -5 off Warning: Wrong object size: 20024 + 37 = 20061 != 20066: -5 off Warning: Wrong object size: 20065 + 85 = 20150 != 20160: -10 off Warning: Wrong object size: 20154 + 29 = 20183 != 20184: -1 off Warning: Wrong object size: 20207 + 37 = 20244 != 20249: -5 off Warning: Wrong object size: 20248 + 85 = 20333 != 20343: -10 off Warning: Wrong object size: 20337 + 32 = 20369 != 20370: -1 off Warning: Wrong object size: 20395 + 54 = 20449 != 20452: -3 off Warning: Wrong object size: 20453 + 17 = 20470 != 20471: -1 off Warning: Wrong object size: 20474 + 18 = 20492 != 20493: -1 off Warning: Wrong object size: 20552 + 29 = 20581 != 20582: -1 off Warning: Wrong object size: 20585 + 118 = 20703 != 20708: -5 off Warning: Wrong object size: 20752 + 86 = 20838 != 20839: -1 off Warning: Wrong object size: 21053 + 154 = 21207 != 21208: -1 off Warning: Wrong object size: 21211 + 45 = 21256 != 21258: -2 off Warning: Wrong object size: 21321 + 37 = 21358 != 21359: -1 off Warning: Wrong object size: 21453 + 37 = 21490 != 21491: -1 off Warning: Wrong object size: 21585 + 37 = 21622 != 21623: -1 off Warning: Wrong object size: 21717 + 16 = 21733 != 21735: -2 off Re-reading created file sample_2000-rewrite.dwg ERROR: bit_read_RC buffer overflow at 182 ERROR: bit_read_RC buffer overflow at 182 ERROR: bit_read_RC buffer overflow at 182 ERROR: bit_read_RC buffer overflow at 182 ERROR: bit_read_RC buffer overflow at 182 ERROR: bit_read_RC buffer overflow at 30 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 19 ERROR: bit_read_RC buffer overflow at 29 ERROR: bit_read_RC buffer overflow at 62 ERROR: bit_read_RC buffer overflow at 62 ERROR: bit_read_RC buffer overflow at 39 ERROR: bit_read_RC buffer overflow at 39 ERROR: bit_read_RC buffer overflow at 39 ERROR: bit_read_RC buffer overflow at 29 ERROR: bit_read_RC buffer overflow at 181 ERROR: bit_read_RC buffer overflow at 181 ERROR: bit_read_RC buffer overflow at 181 ERROR: bit_read_RC buffer overflow at 181 ERROR: bit_read_RC buffer overflow at 181 ERROR: bit_read_RC buffer overflow at 181 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 29 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 85 ERROR: bit_read_RC buffer overflow at 32 Warning: Invalid handle-reference, longer than 8 bytes: 5.14.0 Warning: Invalid handle-reference, longer than 8 bytes: 5.14.0 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 118 ERROR: bit_read_RC buffer overflow at 86 ERROR: bit_read_RC buffer overflow at 154 ERROR: bit_read_RC buffer overflow at 45 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 37 ERROR: bit_read_RC buffer overflow at 37 `
dwgrewrite.c results in errors
https://api.github.com/repos/LibreDWG/libredwg/issues/171/comments
5
2019-12-01T11:48:09Z
2020-01-06T07:52:34Z
https://github.com/LibreDWG/libredwg/issues/171
530,718,604
171
[ "LibreDWG", "libredwg" ]
On make i get these error `make[2]: Entering directory '/media/vishnu/LocalDisk1/SourceCodes/libredwg/doc' /usr/bin/perl ../src/gen-dynapi.pl Can't locate Convert/Binary/C.pm in @INC (you may need to install the Convert::Binary::C module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ../src/gen-dynapi.pl line 23. BEGIN failed--compilation aborted at ../src/gen-dynapi.pl line 23. Makefile:902: recipe for target 'dynapi.texi' failed make[2]: [dynapi.texi] Error 2 (ignored) MAKEINFO LibreDWG.info /media/vishnu/LocalDisk1/SourceCodes/libredwg/build-aux/missing: line 81: makeinfo: command not found WARNING: 'makeinfo' is missing on your system. You should only need it if you modified a '.texi' file, or any other file indirectly affecting the aspect of the manual. You might want to install the Texinfo package: <http://www.gnu.org/software/texinfo/> The spurious makeinfo call might also be the consequence of using a buggy 'make' (AIX, DU, IRIX), in which case you might want to install GNU make: <http://www.gnu.org/software/make/> Makefile:447: recipe for target 'LibreDWG.info' failed make[2]: *** [LibreDWG.info] Error 127 make[2]: Leaving directory '/media/vishnu/LocalDisk1/SourceCodes/libredwg/doc' Makefile:594: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/media/vishnu/LocalDisk1/SourceCodes/libredwg' Makefile:489: recipe for target 'all' failed make: *** [all] Error 2 `
Could not build libredwg in Ubuntu 18.04.2 LTS
https://api.github.com/repos/LibreDWG/libredwg/issues/170/comments
3
2019-11-28T18:22:28Z
2020-01-06T07:52:34Z
https://github.com/LibreDWG/libredwg/issues/170
530,039,746
170
[ "LibreDWG", "libredwg" ]
Would be great if there is a single example that covers Read DWG Edit something Write the edit DWG Would be great as one can use it for beginning. If there is one already please help me spot it.
Need an example for beginner with basic needs
https://api.github.com/repos/LibreDWG/libredwg/issues/169/comments
1
2019-11-21T09:02:21Z
2020-11-16T16:57:57Z
https://github.com/LibreDWG/libredwg/issues/169
526,453,918
169
[ "LibreDWG", "libredwg" ]
I'm using dwg2svg2 and dwg2SVG Need to change the stoke and stroke-width in generated svg
How to change stroke and stroke-width in c file
https://api.github.com/repos/LibreDWG/libredwg/issues/168/comments
2
2019-11-19T15:42:59Z
2020-07-11T09:20:12Z
https://github.com/LibreDWG/libredwg/issues/168
525,091,406
168
[ "LibreDWG", "libredwg" ]
It seems layer names in the format "ABCD(space)ABDC" are being renamed to "ABCD_ABCD" where any space char is replaced by a "_" char. Sample file attached and screenshot inside AutoCAD comparing to the dwglayers.exe output. It seems the issue doesn't have to do with dwglayers app itself. Maybe something with this code (dwg_api.c): `bit_convert_TU ((BITCODE_TU)layer->name);` https://github.com/LibreDWG/libredwg/blob/a09c1996ee226de18c6de5d1f7b7a26996a75440/src/dwg_api.c#L20140 [chair.zip](https://github.com/LibreDWG/libredwg/files/3809770/chair.zip) ![Screen Shot 2019-11-05 at 12 26 18](https://user-images.githubusercontent.com/818592/68221634-7d2aa680-ffc8-11e9-9e5a-157faeb906a0.jpg)
dwglayers should optionally display EXTNAMES (spaces vs _)
https://api.github.com/repos/LibreDWG/libredwg/issues/167/comments
3
2019-11-05T15:36:03Z
2019-11-07T10:35:18Z
https://github.com/LibreDWG/libredwg/issues/167
517,849,124
167
[ "LibreDWG", "libredwg" ]
Hi, I'm trying to run the dwglayers.exe app with some DWG files. It works just fine when called via BAT command but when called from a .NET app using Process class it works sometimes and fails to get information from some dwg files. ``` ProcessStartInfo objStartInfo = new ProcessStartInfo(); objStartInfo.FileName = "dwglayers.exe"; objStartInfo.Arguments = string.Format("\"{0}\"", "MyDwgFile.dwg"); objStartInfo.RedirectStandardOutput = true; objStartInfo.UseShellExecute = false; objStartInfo.CreateNoWindow = true; try { List<string> lstResult = new List<string>(); using (var objProcess = new Process()) { objProcess.EnableRaisingEvents = true; objProcess.StartInfo = objStartInfo; objProcess.OutputDataReceived += (sender, e) => { if (string.IsNullOrWhiteSpace(e.Data)) return; if (e.Data.Trim() == "0") return; if (!lstResult.Any(sItem => sItem.Equals(e.Data, StringComparison.InvariantCultureIgnoreCase))) lstResult.Add(e.Data); }; objProcess.Start(); objProcess.BeginOutputReadLine(); objProcess.WaitForExit(); } } catch (Exception excError) { } ``` It seems dwglayers.exe doesn't fill the output before exiting (or maybe doesn't flush the output properly). The odd behavior is that for some drawings this code works just fine. I'm attaching a DWG that can be successfully run via BAT but can't with this code. It should list the following layers: 0 AFUWS-P AFUWS-P-TN Thank you. [MyDwgFile.dwg.zip](https://github.com/LibreDWG/libredwg/files/3804033/MyDwgFile.dwg.zip)
Odd buffer output
https://api.github.com/repos/LibreDWG/libredwg/issues/166/comments
7
2019-11-04T12:53:24Z
2019-11-05T14:33:04Z
https://github.com/LibreDWG/libredwg/issues/166
517,131,911
166
[ "LibreDWG", "libredwg" ]
I use 0.9 version of libredwg to decode a R2000 version of DWG file and draw all entities in the Dwg_Data, and find that there are some ARCs missing. Here is a comparison between the results of my program drawing and the results of commercial software display. ![image](https://user-images.githubusercontent.com/57090945/67666005-d598ed00-f9a5-11e9-9773-b20fe9e3f9cd.png) ![image](https://user-images.githubusercontent.com/57090945/67666677-3e349980-f9a7-11e9-9ac5-b77aed6ebffd.png) Before I decode, I use AutoCAD to decompose the drawings. I checked the properties of arcs that are not displayed, and there is no difference between them. The test file is here: [test.zip](https://github.com/LibreDWG/libredwg/files/3777962/test.zip)
Flipped ARC
https://api.github.com/repos/LibreDWG/libredwg/issues/165/comments
16
2019-10-28T09:23:03Z
2022-04-20T10:11:33Z
https://github.com/LibreDWG/libredwg/issues/165
513,186,603
165
[ "LibreDWG", "libredwg" ]
ASAN output ``` $ ./dwg2svg2 libredwg2400-heapoverflow.dwg ================================================================= ==8024== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x608400009f08 at pc 0x7eff9f8b1cff bp 0x7fff8d03e860 sp 0x7fff8d03e858 READ of size 1 at 0x608400009f08 thread T0 #0 0x7eff9f8b1cfe (/home/xxx/workplace/asan/libredwg-0.9.2400/src/.libs/libredwg.so.0.0.9+0x120cfe) #1 0x7eff9f9486b8 (/home/xxx/workplace/asan/libredwg-0.9.2400/src/.libs/libredwg.so.0.0.9+0x1b76b8) #2 0x7eff9f8b2e4b (/home/xxx/workplace/asan/libredwg-0.9.2400/src/.libs/libredwg.so.0.0.9+0x121e4b) #3 0x7eff9f89df05 (/home/xxx/workplace/asan/libredwg-0.9.2400/src/.libs/libredwg.so.0.0.9+0x10cf05) #4 0x40192b (/home/xxx/workplace/asan/libredwg-0.9.2400/examples/.libs/dwg2svg2+0x40192b) #5 0x403f0c (/home/xxx/workplace/asan/libredwg-0.9.2400/examples/.libs/dwg2svg2+0x403f0c) #6 0x7eff9f0e3f44 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21f44) #7 0x401698 (/home/xxx/workplace/asan/libredwg-0.9.2400/examples/.libs/dwg2svg2+0x401698) 0x608400009f08 is located 0 bytes to the right of 19720-byte region [0x608400005200,0x608400009f08) allocated by thread T0 here: #0 0x7effa0be34e5 (/usr/lib/x86_64-linux-gnu/libasan.so.0.0.0+0x154e5) #1 0x7eff9f89d1f2 (/home/xxx/workplace/asan/libredwg-0.9.2400/src/.libs/libredwg.so.0.0.9+0x10c1f2) #2 0x7eff9f89dec3 (/home/xxx/workplace/asan/libredwg-0.9.2400/src/.libs/libredwg.so.0.0.9+0x10cec3) #3 0x40192b (/home/xxx/workplace/asan/libredwg-0.9.2400/examples/.libs/dwg2svg2+0x40192b) #4 0x403f0c (/home/xxx/workplace/asan/libredwg-0.9.2400/examples/.libs/dwg2svg2+0x403f0c) #5 0x7eff9f0e3f44 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21f44) Shadow bytes around the buggy address: 0x0c10ffff9390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c10ffff93a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c10ffff93b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c10ffff93c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c10ffff93d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c10ffff93e0: 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c10ffff93f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c10ffff9400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c10ffff9410: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c10ffff9420: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c10ffff9430: 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 Heap righ redzone: fb Freed Heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==8024== ABORTING ``` poc ``` https://github.com/hac425xxx/fuzzdata/blob/master/libredwg2400-heapoverflow.dwg ```
heap overflow in libredwg 0.9.2400
https://api.github.com/repos/LibreDWG/libredwg/issues/164/comments
1
2019-10-25T10:31:31Z
2019-10-25T15:53:30Z
https://github.com/LibreDWG/libredwg/issues/164
512,436,919
164
[ "LibreDWG", "libredwg" ]
crash context in gdb ``` pwndbg> r Starting program: /home/xxx/workplace/libredwg-0.9.2400/examples/.libs/dwg2svg2 libredwg2400-null-ptr-dereference.dwg Program received signal SIGSEGV, Segmentation fault. 0x00007ffff776c904 in check_POLYLINE_handles (obj=obj@entry=0x60d6e0) at decode.c:4210 4210 Dwg_Object_Ref *vertex = _obj->vertex[0]; LEGEND: STACK | HEAP | CODE | DATA | RWX | RODATA ───────────────────────────────────────────────────────────────────────────────[ REGISTERS ]──────────────────────────────────────────────────────────────────────────────── RAX 0x0 RBX 0x6032a0 (g_dwg) ◂— 0x1200000012 RCX 0xc60 RDX 0x0 RDI 0x60d6e0 ◂— 0x18c RSI 0x4 R8 0x6 R9 0x61649b ◂— 0x61004c0079004207 R10 0x7fffffffd830 —▸ 0x7fffffffda70 —▸ 0x61649b ◂— 0x61004c0079004207 R11 0x7ffff7916980 (dwg_add_POLYLINE_PFACE) ◂— push rbp R12 0x612fd0 —▸ 0x612eb0 ◂— 0x1a R13 0x0 R14 0x6032a0 (g_dwg) ◂— 0x1200000012 R15 0x0 RBP 0x60d6e0 ◂— 0x18c RSP 0x7fffffffdb10 ◂— 0x0 RIP 0x7ffff776c904 (check_POLYLINE_handles+196) ◂— mov r13, qword ptr [rax] ─────────────────────────────────────────────────────────────────────────────────[ DISASM ]───────────────────────────────────────────────────────────────────────────────── ► 0x7ffff776c904 <check_POLYLINE_handles+196> mov r13, qword ptr [rax] 0x7ffff776c907 <check_POLYLINE_handles+199> test r13, r13 0x7ffff776c90a <check_POLYLINE_handles+202> je check_POLYLINE_handles+340 <0x7ffff776c994> ↓ 0x7ffff776c994 <check_POLYLINE_handles+340> xor ebx, ebx 0x7ffff776c996 <check_POLYLINE_handles+342> test r15, r15 0x7ffff776c999 <check_POLYLINE_handles+345> je check_POLYLINE_handles+354 <0x7ffff776c9a2> ↓ 0x7ffff776c9a2 <check_POLYLINE_handles+354> cmp dword ptr [rip + 0x66b053], 0 <0x7ffff7dd79fc> 0x7ffff776c9a9 <check_POLYLINE_handles+361> je check_POLYLINE_handles+545 <0x7ffff776ca61> ↓ 0x7ffff776ca61 <check_POLYLINE_handles+545> cmp dword ptr [r12 + 0xc], ebx 0x7ffff776ca66 <check_POLYLINE_handles+550> ja check_POLYLINE_handles+518 <0x7ffff776ca46> ↓ 0x7ffff776ca46 <check_POLYLINE_handles+518> mov rax, qword ptr [r12 + 0x20] ─────────────────────────────────────────────────────────────────────────────[ SOURCE (CODE) ]────────────────────────────────────────────────────────────────────────────── In file: /home/xxx/workplace/libredwg-0.9.2400/src/decode.c 4205 { // maybe a reactor pointing forwards or vertex 4206 LOG_WARN ("Wrong POLYLINE.layer %lX", 4207 layer ? layer->handleref.value : 0L); 4208 if (_obj->num_owned > 0) 4209 { ► 4210 Dwg_Object_Ref *vertex = _obj->vertex[0]; 4211 if (vertex && !vertex->obj) 4212 vertex->obj = dwg_ref_object_relative (dwg, vertex, obj); 4213 if (vertex && vertex->obj /* pointing backwards */ 4214 && vertex->obj->fixedtype == DWG_TYPE_LAYER) 4215 { ─────────────────────────────────────────────────────────────────────────────────[ STACK ]────────────────────────────────────────────────────────────────────────────────── 00:0000│ rsp 0x7fffffffdb10 ◂— 0x0 01:0008│ 0x7fffffffdb18 —▸ 0x6032a0 (g_dwg) ◂— 0x1200000012 02:0010│ 0x7fffffffdb20 ◂— 0x0 03:0018│ 0x7fffffffdb28 —▸ 0x60d6e0 ◂— 0x18c 04:0020│ 0x7fffffffdb30 —▸ 0x7fffffffdd50 —▸ 0x61649b ◂— 0x61004c0079004207 05:0028│ 0x7fffffffdb38 ◂— 0x7400 06:0030│ 0x7fffffffdb40 —▸ 0x6131b0 ◂— 0xc3d000d00000dca 07:0038│ 0x7fffffffdb48 —▸ 0x7ffff79389ab (dwg_decode_add_object+3995) ◂— jmp 0x7ffff7937d60 ───────────────────────────────────────────────────────────────────────────────[ BACKTRACE ]──────────────────────────────────────────────────────────────────────────────── ► f 0 7ffff776c904 check_POLYLINE_handles+196 f 1 7ffff79389ab dwg_decode_add_object+3995 f 2 7ffff79430d3 decode_R2004+1651 f 3 7ffff79430d3 decode_R2004+1651 f 4 7ffff79472f1 dwg_decode+2305 f 5 7ffff77ef34b dwg_read_file+491 f 6 4014ee main+510 f 7 4014ee main+510 f 8 7ffff707df45 __libc_start_main+245 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Program received signal SIGSEGV (fault address 0x0) pwndbg> p _obj->vertex $1 = (BITCODE_H *) 0x0 pwndbg> bt #0 0x00007ffff776c904 in check_POLYLINE_handles (obj=obj@entry=0x60d6e0) at decode.c:4210 #1 0x00007ffff79389ab in dwg_decode_add_object (dwg=dwg@entry=0x6032a0 <g_dwg>, dat=dat@entry=0x7fffffffdd50, hdl_dat=hdl_dat@entry=0x7fffffffdd50, address=address@entry=13031) at decode.c:4663 #2 0x00007ffff79430d3 in read_2004_section_handles (dwg=0x6032a0 <g_dwg>, dat=0x7fffffffdec0) at decode.c:2578 #3 decode_R2004 (dat=dat@entry=0x7fffffffdec0, dwg=dwg@entry=0x6032a0 <g_dwg>) at decode.c:2848 #4 0x00007ffff79472f1 in dwg_decode (dat=dat@entry=0x7fffffffdec0, dwg=dwg@entry=0x6032a0 <g_dwg>) at decode.c:245 #5 0x00007ffff77ef34b in dwg_read_file (filename=0x7fffffffe3b3 "libredwg2400-null-ptr-dereference.dwg", dwg=dwg@entry=0x6032a0 <g_dwg>) at dwg.c:206 #6 0x00000000004014ee in test_SVG (filename=<optimized out>) at dwg2svg2.c:119 #7 main (argc=argc@entry=2, argv=argv@entry=0x7fffffffe0f8) at dwg2svg2.c:504 #8 0x00007ffff707df45 in __libc_start_main (main=0x4012f0 <main>, argc=2, argv=0x7fffffffe0f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe0e8) at libc-start.c:287 #9 0x0000000000401770 in _start () pwndbg> ``` poc ``` https://github.com/hac425xxx/fuzzdata/blob/master/libredwg2400-null-ptr-dereference.dwg ```
Null pointer dereference in libredwg 0.9.2400
https://api.github.com/repos/LibreDWG/libredwg/issues/163/comments
0
2019-10-25T09:57:59Z
2020-01-16T12:12:02Z
https://github.com/LibreDWG/libredwg/issues/163
512,421,307
163
[ "LibreDWG", "libredwg" ]
when parse a crafted dwg file , libredwg could dos and cpu 100% cmdline ``` ./dwg2svg2 libredwg2400-dos.dwg ``` poc ``` https://github.com/hac425xxx/fuzzdata/blob/master/libredwg2400-dos.dwg ```
DOS in libredwg 0.9.2400
https://api.github.com/repos/LibreDWG/libredwg/issues/162/comments
0
2019-10-25T09:48:17Z
2019-10-25T15:46:08Z
https://github.com/LibreDWG/libredwg/issues/162
512,416,425
162
[ "LibreDWG", "libredwg" ]
when parse a crafted dwg file , libredwg could dos and cpu 100% cmdline ``` ./dwg2svg2 dos.dwg ``` poc ``` https://github.com/hac425xxx/fuzzdata/blob/master/dos.dwg ```
DOS in dwg2svg2
https://api.github.com/repos/LibreDWG/libredwg/issues/161/comments
0
2019-10-22T03:07:33Z
2020-01-16T12:12:02Z
https://github.com/LibreDWG/libredwg/issues/161
510,403,970
161
[ "LibreDWG", "libredwg" ]
asan output ``` ~/workplace/asan/libredwg-0.9.2376/examples$ ./dwg2svg2 heapoverflow2.dwg ================================================================= ==164471== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60400000ffff at pc 0x7f5784c536db bp 0x7ffdfb0a2d30 sp 0x7ffdfb0a2d28 READ of size 1 at 0x60400000ffff thread T0 #0 0x7f5784c536da (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1bf6da) #1 0x7f5784c54d50 (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1c0d50) #2 0x7f5784c73d35 (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1dfd35) #3 0x7f5784bb5dda (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x121dda) #4 0x7f5784ba0e45 (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x10ce45) #5 0x40196b (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x40196b) #6 0x403f4c (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x403f4c) #7 0x7f57843e6f44 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21f44) #8 0x4016d8 (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x4016d8) 0x60400000ffff is located 7 bytes to the right of 888-byte region [0x60400000fc80,0x60400000fff8) allocated by thread T0 here: #0 0x7f5785edf4e5 (/usr/lib/x86_64-linux-gnu/libasan.so.0.0.0+0x154e5) #1 0x7f5784c54b4b (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1c0b4b) #2 0x7f5784c73d35 (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1dfd35) #3 0x7f5784bb5dda (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x121dda) #4 0x7f5784ba0e45 (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x10ce45) #5 0x40196b (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x40196b) #6 0x403f4c (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x403f4c) #7 0x7f57843e6f44 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21f44) Shadow bytes around the buggy address: 0x0c087fff9fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c087fff9fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c087fff9fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c087fff9fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c087fff9fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c087fff9ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[fa] 0x0c087fffa000:fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c087fffa010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c087fffa020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c087fffa030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c087fffa040: 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 Heap righ redzone: fb Freed Heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==164471== ABORTING ``` poc file ``` https://github.com/hac425xxx/fuzzdata/blob/master/heapoverflow2.dwg ```
heapoverflow in read_R2004_section_map
https://api.github.com/repos/LibreDWG/libredwg/issues/160/comments
0
2019-10-22T02:57:47Z
2020-01-16T12:12:01Z
https://github.com/LibreDWG/libredwg/issues/160
510,401,817
160
[ "LibreDWG", "libredwg" ]
AddressSanitizer output: ``` ~/workplace/asan/libredwg-0.9.2376/examples$ ./dwg2svg2 heapoverflow.dwg ================================================================= ==144878== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60440000fef8 at pc 0x7feac351c84e bp 0x7fff36a49360 sp 0x7fff36a49358 WRITE of size 1 at 0x60440000fef8 thread T0 #0 0x7feac351c84d (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x11d84d) #1 0x7feac35bebcd (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1bfbcd) #2 0x7feac35bfbfa (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1c0bfa) #3 0x7feac35ded35 (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1dfd35) #4 0x7feac3520dda (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x121dda) #5 0x7feac350be45 (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x10ce45) #6 0x40196b (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x40196b) #7 0x403f4c (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x403f4c) #8 0x7feac2d51f44 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21f44) #9 0x4016d8 (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x4016d8) 0x60440000fef8 is located 0 bytes to the right of 1144-byte region [0x60440000fa80,0x60440000fef8) allocated by thread T0 here: #0 0x7feac484a4e5 (/usr/lib/x86_64-linux-gnu/libasan.so.0.0.0+0x154e5) #1 0x7feac35bfb4b (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1c0b4b) #2 0x7feac35ded35 (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x1dfd35) #3 0x7feac3520dda (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x121dda) #4 0x7feac350be45 (/home/xxx/workplace/asan/libredwg-0.9.2376/src/.libs/libredwg.so.0.0.9+0x10ce45) #5 0x40196b (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x40196b) #6 0x403f4c (/home/xxx/workplace/asan/libredwg-0.9.2376/examples/.libs/lt-dwg2svg2+0x403f4c) #7 0x7feac2d51f44 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21f44) Shadow bytes around the buggy address: 0x0c08ffff9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c08ffff9f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c08ffff9fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c08ffff9fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c08ffff9fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c08ffff9fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[fa] 0x0c08ffff9fe0:fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c08ffff9ff0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c08ffffa000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c08ffffa010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c08ffffa020: 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 Heap righ redzone: fb Freed Heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==144878== ABORTING ``` poc ``` https://github.com/hac425xxx/fuzzdata/blob/master/heapoverflow.dwg ```
heapoverflow in dwg2svg2
https://api.github.com/repos/LibreDWG/libredwg/issues/159/comments
0
2019-10-22T02:44:14Z
2020-01-16T12:12:01Z
https://github.com/LibreDWG/libredwg/issues/159
510,398,780
159
[ "LibreDWG", "libredwg" ]
The crash context in gdb ``` pwndbg> r Starting program: /home/xxxxxx/workplace/libredwg-0.9.2376/examples/.libs/dwg2svg2 poc.dwg Program received signal SIGSEGV, Segmentation fault. 0x00007ffff793bd84 in decode_R13_R2000 (dat=dat@entry=0x7fffffffdee0, dwg=dwg@entry=0x6032a0 <g_dwg>) at decode.c:1109 1109 if (strEQc ((const char *)klass->dxfname, "LAYOUT")) LEGEND: STACK | HEAP | CODE | DATA | RWX | RODATA ───────────────────────────────────────────────────────────────────────────────[ REGISTERS ]──────────────────────────────────────────────────────────────────────────────── RAX 0x100 RBX 0x60bc70 ◂— 0x100f4f4 RCX 0x7 RDX 0x100 RDI 0x7ffff7b4cde6 ◂— pop r9 /* 'LAYOUT' */ RSI 0x0 R8 0x5 R9 0x7ffff74207b8 (main_arena+88) —▸ 0x60bcb0 ◂— 0x0 R10 0x0 R11 0x7ffff70e1200 (free+224) ◂— mov rdx, rdi R12 0x7 R13 0x60a1b8 ◂— 0xa00000000000000 R14 0x7fffffffdee0 —▸ 0x605250 ◂— 0x1500323130314341 /* 'AC1012' */ R15 0x6032a0 (g_dwg) ◂— 0xb0000000b /* '\x0b' */ RBP 0x1e002113 RSP 0x7fffffffdd00 —▸ 0x7ffff706e0a8 ◂— in eax, dx RIP 0x7ffff793bd84 (decode_R13_R2000+4228) ◂— repe cmpsb byte ptr [rsi], byte ptr [rdi] ─────────────────────────────────────────────────────────────────────────────────[ DISASM ]───────────────────────────────────────────────────────────────────────────────── ► 0x7ffff793bd84 <decode_R13_R2000+4228> repe cmpsb byte ptr [rsi], byte ptr [rdi] 0x7ffff793bd86 <decode_R13_R2000+4230> jne decode_R13_R2000+4242 <0x7ffff793bd92> ↓ 0x7ffff793bd92 <decode_R13_R2000+4242> movzx eax, word ptr [r15 + 0xc40] 0x7ffff793bd9a <decode_R13_R2000+4250> lea edx, [rax + 1] 0x7ffff793bd9d <decode_R13_R2000+4253> cmp dx, 0x1f4 0x7ffff793bda2 <decode_R13_R2000+4258> mov word ptr [r15 + 0xc40], dx 0x7ffff793bdaa <decode_R13_R2000+4266> ja decode_R13_R2000+5434 <0x7ffff793c23a> ↓ 0x7ffff793c23a <decode_R13_R2000+5434> mov eax, dword ptr [rip + 0x49b7bc] <0x7ffff7dd79fc> 0x7ffff793c240 <decode_R13_R2000+5440> test eax, eax 0x7ffff793c242 <decode_R13_R2000+5442> je decode_R13_R2000+5503 <0x7ffff793c27f> ↓ 0x7ffff793c27f <decode_R13_R2000+5503> mov rax, qword ptr [r15 + 0x40] ─────────────────────────────────────────────────────────────────────────────[ SOURCE (CODE) ]────────────────────────────────────────────────────────────────────────────── In file: /home/xxx/workplace/libredwg-0.9.2376/src/decode.c 1104 klass->num_instances, klass->dwg_version, klass->maint_version, 1105 klass->unknown_1, klass->unknown_2); 1106 } 1107 #endif 1108 ► 1109 if (strEQc ((const char *)klass->dxfname, "LAYOUT")) 1110 dwg->layout_type = klass->number; 1111 1112 dwg->num_classes++; 1113 if (dwg->num_classes > 500) 1114 { ─────────────────────────────────────────────────────────────────────────────────[ STACK ]────────────────────────────────────────────────────────────────────────────────── 00:0000│ rsp 0x7fffffffdd00 —▸ 0x7ffff706e0a8 ◂— in eax, dx 01:0008│ 0x7fffffffdd08 —▸ 0x7ffff7ff79e0 —▸ 0x7ffff705e000 ◂— jg 0x7ffff705e047 02:0010│ 0x7fffffffdd10 ◂— 0x5 03:0018│ 0x7fffffffdd18 ◂— 0x35 /* '5' */ 04:0020│ 0x7fffffffdd20 —▸ 0x7fffffffdd80 —▸ 0x7ffff7b4cbae ◂— movsxd rax, dword ptr [r10 + 0x3a] /* 'AcDb:Header' */ ... ↓ 06:0030│ 0x7fffffffdd30 ◂— 0x5bffffdd90 07:0038│ 0x7fffffffdd38 ◂— 0x0 ───────────────────────────────────────────────────────────────────────────────[ BACKTRACE ]──────────────────────────────────────────────────────────────────────────────── ► f 0 7ffff793bd84 decode_R13_R2000+4228 f 1 7ffff79484cb dwg_decode+2315 f 2 7ffff77f14bb dwg_read_file+491 f 3 4014ee main+510 f 4 4014ee main+510 f 5 7ffff707ff45 __libc_start_main+245 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Program received signal SIGSEGV (fault address 0x0) pwndbg> p klass->dxfname $1 = 0x0 pwndbg> ``` The poc ``` https://github.com/hac425xxx/fuzzdata/blob/master/null-ptr-poc.dwg ```
Null pointer dereference in decode_R13_R2000
https://api.github.com/repos/LibreDWG/libredwg/issues/158/comments
0
2019-10-22T02:24:24Z
2020-01-16T12:12:00Z
https://github.com/LibreDWG/libredwg/issues/158
510,394,148
158
[ "LibreDWG", "libredwg" ]
I am looking for a library that allows reading DWG files on Android. And I found this library, but it was written in C ++ and I don't know how to port for Android. I am very grateful if anyone can help to use on Android. Thank you very much,
How to port library for Android OS
https://api.github.com/repos/LibreDWG/libredwg/issues/157/comments
3
2019-10-18T08:54:31Z
2019-10-18T09:55:12Z
https://github.com/LibreDWG/libredwg/issues/157
508,945,045
157
[ "LibreDWG", "libredwg" ]
Hello, I tested version 0.9 and I have the following problems: I have provided two dwg files, tmp1.dwg and tmp2.dwg. The tmp1.dwg file contains the shx font. The text content is well preserved when exporting, but all the characters are replaced with truetype fonts. So after dwg is converted into svg, many style changes have occurred. Can it still be shx font style restore? tmp2.dwg contains a small amount of drawing content, but after switching out to svg, it does not see any content. I tried to use dwg2dxf to convert to dxf. At this time, I get the following error message. ![QQ截图20191015223202](https://user-images.githubusercontent.com/10000818/66841212-eefc6b00-ef9b-11e9-8955-3645a6269d7f.png) [libredwg test.zip](https://github.com/LibreDWG/libredwg/files/3729861/libredwg.test.zip) Thanks.
fonts and some erro.
https://api.github.com/repos/LibreDWG/libredwg/issues/156/comments
3
2019-10-15T14:35:36Z
2019-10-28T09:20:20Z
https://github.com/LibreDWG/libredwg/issues/156
507,287,961
156
[ "LibreDWG", "libredwg" ]
I am not an experienced programmer.I am confused, why can you provide DLL files, but do not provide WINDOWS source code? I really need to use this library on WINDOWS
How to find WINDOWS source code
https://api.github.com/repos/LibreDWG/libredwg/issues/155/comments
1
2019-10-08T02:16:03Z
2019-10-08T04:50:31Z
https://github.com/LibreDWG/libredwg/issues/155
503,784,462
155
[ "LibreDWG", "libredwg" ]
Are there any docs for the python bindings available. I have no idea how to use libredwg and run into a crash imediatly: ``` >>> import LibreDWG >>> LibreDWG.Dwg_Data() <LibreDWG.Dwg_Data; proxy of <Swig Object of type '_dwg_struct *' at 0x7f1dbf13d9c0> > >>> data = LibreDWG.Dwg_Data() >>> data.swig/python detected a memory leak of type 'BITCODE_MS *', no destructor found. swig/python detected a memory leak of type 'uint16_t *', no destructor found. swig/python detected a memory leak of type 'BITCODE_MS *', no destructor found. swig/python detected a memory leak of type 'BITCODE_MS *', no destructor found. ```
docs for python bindings
https://api.github.com/repos/LibreDWG/libredwg/issues/152/comments
6
2019-10-02T11:58:09Z
2020-10-01T15:40:16Z
https://github.com/LibreDWG/libredwg/issues/152
501,444,261
152
[ "LibreDWG", "libredwg" ]
also free is crashing on uaf
indxf leaks
https://api.github.com/repos/LibreDWG/libredwg/issues/151/comments
1
2019-10-01T06:39:15Z
2020-08-02T11:09:03Z
https://github.com/LibreDWG/libredwg/issues/151
500,695,946
151
[ "LibreDWG", "libredwg" ]
✓ INSERT.block_header missing ✓ WIPEOUT.uvec wrong ✓ WIPEOUT.imagedefreactor 360: code 5 => 3 ✓ VPORT: 41, 71 wrong ✓ REGION: encr_sat_data (encode) ✓ DIMASSOC
minor indxf things missing
https://api.github.com/repos/LibreDWG/libredwg/issues/150/comments
0
2019-09-30T10:00:04Z
2019-10-01T10:01:01Z
https://github.com/LibreDWG/libredwg/issues/150
500,174,494
150
[ "LibreDWG", "libredwg" ]
Hello, test dwg2SVG(0.8.2), the exported content will always prompt an error, is it wrong with me? But using dwg2dxf is normal. Such as tips: ![image](https://user-images.githubusercontent.com/10000818/65845395-b12cff00-e36c-11e9-8c4d-7d7c0d9d0faa.png) [libredwg test.zip](https://github.com/LibreDWG/libredwg/files/3668605/libredwg.test.zip) Thanks.
dwg2SVG exported content will always prompt an error
https://api.github.com/repos/LibreDWG/libredwg/issues/149/comments
2
2019-09-30T02:32:55Z
2019-10-02T08:25:34Z
https://github.com/LibreDWG/libredwg/issues/149
500,017,715
149
[ "LibreDWG", "libredwg" ]
I encountered an error while executing ./configure: Can't find install-sh, install.sh, or shtool in build-aux "."/build-aux and build-aux/git-version-gen: WARNING: .tarball-version is missing or damaged when i executing autogen.sh
error: cannot find install-sh
https://api.github.com/repos/LibreDWG/libredwg/issues/148/comments
1
2019-09-29T02:17:56Z
2019-11-05T14:07:05Z
https://github.com/LibreDWG/libredwg/issues/148
499,844,444
148
[ "LibreDWG", "libredwg" ]
to enable prettier ref -> TYPE (name) logging, and also to calloc the dwg->objects array earlier, and get away with much less dirty_refs, which helps the importers greatly. also doable for decode, not just the importers. with decode just scan the HANDLES (object-map) for its types. for indxf just scan all 0 lines.
indxf: prescan all objects and types
https://api.github.com/repos/LibreDWG/libredwg/issues/147/comments
0
2019-09-25T09:41:19Z
2019-09-25T09:42:53Z
https://github.com/LibreDWG/libredwg/issues/147
498,170,132
147
[ "LibreDWG", "libredwg" ]
BLOCK_HEADER.*Model_Space (1F) is still missing the entity refs: ``` block_entity: (3.1.20) abs:20 [H 0] -first_entity: (4.1.8B) abs:8B [H 0] -last_entity: (4.2.894) abs:894 [H 0] -endblk_entity: (3.1.21) abs:21 [H 0] +first_entity: (4.0.0) abs:0 [H 0] +last_entity: (4.0.0) abs:0 [H 0] +endblk_entity: (3.0.0) abs:0 [H 0] layout: (5.1.22) abs:22 [H 340] ``` Blocks #142
indxf: BLOCK_HEADER missing entity refs
https://api.github.com/repos/LibreDWG/libredwg/issues/146/comments
1
2019-09-25T09:36:32Z
2019-09-27T13:29:02Z
https://github.com/LibreDWG/libredwg/issues/146
498,167,592
146
[ "LibreDWG", "libredwg" ]
in_dxf creates only structured eed->data, no eed-.>raw. Roundtripping fails.
in_dxf/encode EED's
https://api.github.com/repos/LibreDWG/libredwg/issues/145/comments
1
2019-09-25T09:34:37Z
2019-09-27T12:53:56Z
https://github.com/LibreDWG/libredwg/issues/145
498,166,545
145
[ "LibreDWG", "libredwg" ]
I am using command line tool like : dwg2dxf data.dwg I tried converting few dwg file few worked properly. But when i tried to convert a file which have multiple feautre i.e point, line and polygon, it gives an error like this: ``` Reading DWG file data.dwg Section[10132]=9933, size: 4864, address: 0xfff38ca Section[10133]=9934, size: 4256, address: 0xfff4bca Section[10134]=9935, size: 4672, address: 0xfff5c6a === Data Section (Section Info 11395) === ERROR: bit_read_RC buffer overflow at 267997258 ERROR: bit_read_RC buffer overflow at 267997258 ERROR: bit_read_RC buffer overflow at 267997258 ERROR: bit_read_RC buffer overflow at 267997258 ERROR: Invalid Data Section Page Map type 0x0 != 0x4163003b ERROR: Failed to decode file: data.dwg 0x100 ``` The file was created to plot few GIS i.e location related points and the size was upto 170MB. Please help me out in this. Thanks.
r2013 section-map overflows
https://api.github.com/repos/LibreDWG/libredwg/issues/144/comments
9
2019-09-18T13:44:39Z
2022-04-11T06:25:01Z
https://github.com/LibreDWG/libredwg/issues/144
495,236,304
144
[ "LibreDWG", "libredwg" ]
Hi, When I convert dwg to dxf, I noticed that there are some problems below : -1 missing entity in Block reference. - Entity color is converted ByBlock instead of ByLayer or RGB, - BLOCKINSERT is missing, - Some error messages in some dwg files. Simple test file is attached, Thanks [testBlock.zip](https://github.com/LibreDWG/libredwg/files/3608547/testBlock.zip)
1 Missing entity in BLOCK reference in dwg2dxf
https://api.github.com/repos/LibreDWG/libredwg/issues/143/comments
8
2019-09-13T05:36:50Z
2019-10-05T19:25:58Z
https://github.com/LibreDWG/libredwg/issues/143
493,144,559
143
[ "LibreDWG", "libredwg" ]
The tables, the NOD (named object dict) are not imported and the ACAD APPID not, and the entities neither. The problem is for sure the HANDLE table (object map), but the OBJECTS table also. Also the header CRC is wrong. This is the log of the acad2018 audit: ``` Scanning completed. Reconstructing handle table from objects. Scanning for objects 99% done 0 objects found. Scanning for objects completed. Recover: error eDwgCRCDoesNotMatch reading Header. Missing AcDbRegAppTable Recover: error 15 opening Named Objects Dictionary. Created new NOD. Missing AcDbLinetypeTable Missing AcDbLayerTable Missing AcDbBlockTable Missing AcDbTextStyleTable Missing AcDbViewTable Missing AcDbUCSTable Missing AcDbViewportTable Missing AcDbDimStyleTable Missing AcDbVXTable Salvaged database from drawing. Auditing Header Auditing Tables Auditing Entities Pass 1 Pass 1 100 objects audited Auditing Entities Pass 2 RegApp ACAD missing Pass 2 100 objects audited Auditing Blocks 0 Blocks audited Auditing AcDsRecords Total errors found 1 fixed 1 Erased 0 objects ``` Teigha says: OdError thrown during readFile of drawing "test/example_2000.dwg" : Object improperly read
dxf import entities
https://api.github.com/repos/LibreDWG/libredwg/issues/142/comments
2
2019-09-12T09:00:31Z
2019-09-27T13:29:52Z
https://github.com/LibreDWG/libredwg/issues/142
492,676,172
142
[ "LibreDWG", "libredwg" ]
with -O2 and inlining or loop-unrolling restrict is broken since gcc 5 and clang 6 until now. in clang bug added with llvm r305938 https://github.com/rust-lang/rust/issues/54878 https://bugs.llvm.org/show_bug.cgi?id=39282 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87609 Add a m4 probe and undefine it then.
probe for broken restrict
https://api.github.com/repos/LibreDWG/libredwg/issues/141/comments
2
2019-09-08T13:05:54Z
2019-09-09T07:35:19Z
https://github.com/LibreDWG/libredwg/issues/141
490,752,078
141
[ "LibreDWG", "libredwg" ]
`./dxf -y ../td/*.dxf ../td/*/*.dxf` `grep -h ERROR *.dxf.log | sort -u` * ERROR: dwg_dynapi_entity_set_value: Invalid entity type BLOCK_HEADER, wanted BLOCK_RECORD => handled in GH #133 ✓ ERROR: dwg_dynapi_entity_value: Invalid UNDERLAY field scale_flag ✓ ERROR: AddressSanitizer: stack-buffer-overflow on ASSOC2DCONSTRAINTGROUP.10 3BD ✓ heap-buffer-overflow in example_2000_min.dxf, LCAD_libereco_R2000.dxf, Leader_2018.dxf ✓ ERROR: dwg_find_tablehandle: Could not resolve table BLOCK ✓ ERROR: dwg_find_tablehandle: Empty header_vars table APPID ✓ ERROR: dwg_find_tablehandle: Empty header_vars table BLOCK ✓ ERROR: dwg_find_tablehandle: Empty header_vars table LAYER ✓ ERROR: dwg_find_tablehandle: Empty header_vars table LTYPE ✓ ERROR: dwg_find_tablehandle: Empty header_vars table STYLE ✓ ERROR: skipping HEADER: 9 $AUTHOR, unknown field with code 1 ✓ ERROR: skipping HEADER: 9 $KEYWORDS, unknown field with code 1 ✓ ERROR: skipping HEADER: 9 $SUBJECT, unknown field with code 1 ✓ ERROR: skipping HEADER: 9 $TITLE, unknown field with code 1 ✓ ERROR: skipping HEADER: 9 $SAVEIMAGES, unknown field with code 70 ✓ ERROR: Unknown DXF code 210 for LWPOLYLINE ✓ ERROR: Unknown DXF code 220 for LWPOLYLINE ✓ ERROR: Unknown DXF code 230 for LWPOLYLINE ✓ ERROR: Unknown DXF code 330 for HATCH ✓ ERROR: Unknown DXF code 97 for HATCH ✓ ERROR: Unknown DXF code 38 for LWPOLYLINE ✓ ERROR: Unknown DXF code 39 for LWPOLYLINE ✓ ERROR: Unknown DXF code 71 for DIMSTYLE_CONTROL
indxf: remaining errors
https://api.github.com/repos/LibreDWG/libredwg/issues/140/comments
0
2019-09-02T15:03:59Z
2019-09-08T11:25:55Z
https://github.com/LibreDWG/libredwg/issues/140
488,232,505
140
[ "LibreDWG", "libredwg" ]
* example_2000_min.dxf.log:==21314==ERROR: AddressSanitizer: heap-buffer-overflow POLYLINE_2D.210 * LCAD_libereco_R2000.dxf.log:==21365==ERROR: AddressSanitizer: heap-use-after-free minimized dxf (999, "dxflib 2.2.0.0") Need to fail on minimized DXF * Leader_2018.dxf.log:==21926==ERROR: AddressSanitizer: heap-buffer-overflow MULTILEADER.leaders[].lines[0].line_index = 0 [91 BL] dxf (92, -1056964608) * PLANO_MASSANASSA_2004.dxf.log:==21593==ERROR: AddressSanitizer: heap-buffer-overflow encode: bit_calc_CRC
indxf: remaining crashes
https://api.github.com/repos/LibreDWG/libredwg/issues/139/comments
1
2019-09-02T15:00:01Z
2019-09-08T11:25:03Z
https://github.com/LibreDWG/libredwg/issues/139
488,230,857
139
[ "LibreDWG", "libredwg" ]
to the entities. not in the DXF. postprocess them.
indxf: add attrib_handles, vertices
https://api.github.com/repos/LibreDWG/libredwg/issues/138/comments
0
2019-08-30T16:01:35Z
2019-09-09T17:22:51Z
https://github.com/LibreDWG/libredwg/issues/138
487,559,737
138
[ "LibreDWG", "libredwg" ]
Hi dwg2svg is constantly ignoring all polylines in various dwg files. is that right? Am i missing something?
dwg2SVG is ignoring all polylines
https://api.github.com/repos/LibreDWG/libredwg/issues/137/comments
4
2019-08-28T08:55:37Z
2019-11-05T14:03:04Z
https://github.com/LibreDWG/libredwg/issues/137
486,245,264
137
[ "LibreDWG", "libredwg" ]
use vtables, like dxf_read_pair or such. for dxf, dxfb, json, ... (all possible import formats) first seperate dxfb from dxf ascii but keep json in mind. using the spec just would not make it, I fear. REPEAT blocks, different order of fields, ... dxf: * skip_ws * read_string * read_code * read_long maybe not needed: * read_pair or handle, double * skip_comment
generalize importers
https://api.github.com/repos/LibreDWG/libredwg/issues/136/comments
1
2019-08-19T15:38:17Z
2020-01-08T07:43:20Z
https://github.com/LibreDWG/libredwg/issues/136
482,384,170
136
[ "LibreDWG", "libredwg" ]
at least finish the entities: * ~~SPLINE type, pts, ...~~ done with cf281a26 * ~~MTEXT 46~~ done with 3bded2771068a1c6e10a52d408f8a3dd191c9da4, rect_height * ~~MLINE~~ done with cda3a03f7354f6729b992b066104a301f3fc59cb * ~~SOLID (30-33)~~ done with 234bd2ef085a3c802b218f4f1b237b79c7fb8c7b * ~~TEXT 31~~ * ~~WIPEOUT: 92, 310~~ done with 5b9166c5b02400729263498face59ee89525b9b4 * ~~LWPOLYLINE~~ done with 947b9970ff274ab6342bdf5ba9424d8a625b32fe * ~~INSERT 42,43~~ done with 234bd2ef085a3c802b218f4f1b237b79c7fb8c7b * ~~GROUP 340~~ done with d896d0e8839618acf97bbf19f07be942d23422fe * ~~3DSOLID/BODY/REGION~~ simple decrypt ACIS 1 with ab4fdc6df53bdc5d784cf2b537ae0d7d1fb42462 * ~~*SURFACE~~ fixed vectors, done with 09fffbd4ec0ffe5efcadc9b1781db71716e958e3 more work: * ~~MULTILEADER~~ done with 02d5489657f2df154e510d27099b6b30992d7cf8 * ~~HATCH~~ done with 4286104ae5ac6c59a66f8a6939b47dc16347c118 * TABLE?
indxf: missing entity fields
https://api.github.com/repos/LibreDWG/libredwg/issues/135/comments
0
2019-08-16T12:18:14Z
2019-09-02T11:03:57Z
https://github.com/LibreDWG/libredwg/issues/135
481,583,360
135
[ "LibreDWG", "libredwg" ]
no seperate in_dxfb importer. handle the 2 different readers dynamically: ascii or binary for numbers, strings, handles. needs a new dat flag.
indxfb: move to in_dxf.c
https://api.github.com/repos/LibreDWG/libredwg/issues/134/comments
0
2019-08-16T12:12:06Z
2019-12-26T21:16:50Z
https://github.com/LibreDWG/libredwg/issues/134
481,581,259
134
[ "LibreDWG", "libredwg" ]
* block sections entities are ignored. * TODO resolve handle name INSERT.block_header ... * dwg_dynapi_entity_set_value: Invalid entity type BLOCK_HEADER, wanted BLOCK_RECORD
indxf: read blocks
https://api.github.com/repos/LibreDWG/libredwg/issues/133/comments
0
2019-08-16T12:07:57Z
2019-09-10T11:31:28Z
https://github.com/LibreDWG/libredwg/issues/133
481,579,916
133
[ "LibreDWG", "libredwg" ]
Parsing these files leads to a crash. [CRASH-FILES.zip](https://github.com/LibreDWG/libredwg/files/3504842/CRASH-FILES.zip)
Crash files
https://api.github.com/repos/LibreDWG/libredwg/issues/132/comments
2
2019-08-15T08:43:12Z
2019-09-09T13:25:04Z
https://github.com/LibreDWG/libredwg/issues/132
481,053,737
132
[ "LibreDWG", "libredwg" ]
Rewrite the importer with the dynapi, dynamically looking up the names of the fields to be set. See the `smoke/indxf` branch, looks very good so far.
dxf2dwg for R_2000
https://api.github.com/repos/LibreDWG/libredwg/issues/129/comments
3
2019-08-06T10:11:43Z
2019-08-16T08:41:03Z
https://github.com/LibreDWG/libredwg/issues/129
477,291,769
129
[ "LibreDWG", "libredwg" ]
os: Ubuntu 18.04 went through the installation instructions and got the make install and then this is my output. not sure what exactly is going on but every step beyond this gives nothing but errors `make install make install-recursive make[1]: Entering directory '/home/speed/Downloads/libredwg-0.8.1969' Making install in src make[2]: Entering directory '/home/speed/Downloads/libredwg-0.8.1969/src' make[3]: Entering directory '/home/speed/Downloads/libredwg-0.8.1969/src' /bin/mkdir -p '/usr/local/lib' /bin/bash ../libtool --mode=install /usr/bin/install -c libredwg.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libredwg.so.0.0.8 /usr/local/lib/libredwg.so.0.0.8 /usr/bin/install: cannot create regular file '/usr/local/lib/libredwg.so.0.0.8': Permission denied Makefile:520: recipe for target 'install-libLTLIBRARIES' failed make[3]: *** [install-libLTLIBRARIES] Error 1 make[3]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969/src' Makefile:709: recipe for target 'install-am' failed make[2]: *** [install-am] Error 2 make[2]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969/src' Makefile:589: recipe for target 'install-recursive' failed make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969' Makefile:876: recipe for target 'install' failed make: *** [install] Error 2 ` EDIT: i ran make check and 1 of 1 test failed > =================== All 47 tests passed =================== make[4]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969/test/unit-testing' make[3]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969/test/unit-testing' Making check in xmlsuite make[3]: Entering directory '/home/speed/Downloads/libredwg-0.8.1969/test/xmlsuite' make testsuite make[4]: Entering directory '/home/speed/Downloads/libredwg-0.8.1969/test/xmlsuite' CC testsuite.o CCLD testsuite make[4]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969/test/xmlsuite' make check-TESTS make[4]: Entering directory '/home/speed/Downloads/libredwg-0.8.1969/test/xmlsuite' import-im6.q16: not authorized `os' @ error/constitute.c/WriteImage/1037. import-im6.q16: not authorized `sys' @ error/constitute.c/WriteImage/1037. ./check.py: line 5: syntax error near unexpected token `(' ./check.py: line 5: `srcdir = os.path.dirname(__file__)' FAIL: check.py ================================= 1 of 1 test failed Please report to [email protected] ================================= Makefile:552: recipe for target 'check-TESTS' failed make[4]: *** [check-TESTS] Error 1 make[4]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969/test/xmlsuite' Makefile:675: recipe for target 'check-am' failed make[3]: *** [check-am] Error 2 make[3]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969/test/xmlsuite' Makefile:753: recipe for target 'check-recursive' failed make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969/test' Makefile:589: recipe for target 'check-recursive' failed make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory '/home/speed/Downloads/libredwg-0.8.1969' Makefile:868: recipe for target 'check' failed make: *** [check] Error 2
cannot create regular file
https://api.github.com/repos/LibreDWG/libredwg/issues/128/comments
1
2019-08-04T04:08:11Z
2019-08-04T12:04:18Z
https://github.com/LibreDWG/libredwg/issues/128
476,512,548
128
[ "LibreDWG", "libredwg" ]
we already generate the dynapi tests automatically. generate the texinfo to be included into the docs also. * HEADER * TABLE * OBJECT * ENTITY * CLASS
generate object/field documentation from dynapi
https://api.github.com/repos/LibreDWG/libredwg/issues/127/comments
2
2019-08-03T20:53:50Z
2019-08-06T15:01:15Z
https://github.com/LibreDWG/libredwg/issues/127
476,488,606
127
[ "LibreDWG", "libredwg" ]
Hi, After fuzzing libredwg, I found the following bugs on the latest commit 959984b on master. Command: dwg2SVG $PoC ### 1. Invalid free in decode.c:2289 PoC: https://github.com/strongcourage/PoCs/blob/master/libredwg_959984b/PoC_af_decode.c:2289 ASAN says: ~~~ ==20736==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x7f3e63c329f5 in thread T0 #0 0x7f3e62c2932a in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9832a) #1 0x4973ad in read_2004_section_handles ../../src/decode.c:2289 #2 0x4a1f6d in decode_R2004 ../../src/decode.c:2425 #3 0x414259 in dwg_decode ../../src/decode.c:221 #4 0x4046b8 in dwg_read_file ../../src/dwg.c:193 #5 0x403767 in main ../../programs/dwg2SVG.c:376 #6 0x7f3e624de82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #7 0x401948 in _start (/home/dungnguyen/PoCs/libredwg_959984b/dwg2SVG-asan+0x401948) ~~~ Thanks, Manh Dung
Several bugs found by fuzzing
https://api.github.com/repos/LibreDWG/libredwg/issues/126/comments
18
2019-07-27T23:39:08Z
2019-08-01T17:36:14Z
https://github.com/LibreDWG/libredwg/issues/126
473,688,113
126
[ "LibreDWG", "libredwg" ]
I have a reproducible crash that happens only intermittently on the same file. dwgread.exe -v3 trouble.dwg No error is reported--the output simply stops mid print and crashes with return code 1. If I run the same file again, I may get the same result, or else it may succeed. On this file the output (including stderr) is about 160MB when it succeeds, and random when it fails. Here is the tail of one output of it just stopping: > > plotstyle_flags: 0 [BB 0] > material_flags: 0 [BB 0] > shadow_flags: 0x 0 [RC 284] > has_full_visualstyle: 0 [B 0] > has_face_visualstyle: 0 [B 0] > has_edge_visualstyle: 0 [B 0] > invisible: 1 [BS 60] > linewt: 0x1d [RC 370] > flag: 2 [BS 70] > thickness: 1.627113 [BD 39] > num_points: 9 [BL 90] > points[0]: (6.922552, -0.516608) [RD 10] > points[1]: (6.881224, -0.516608) [DD 10] > points[2]: (6.839895, -0.495944) [DD 10] > points[3]: (6.819231, -0.454615) [DD 10] > points[4] Is there anything I can do better to debug what's crashing it? I have the file available, but it is private, so I'd prefer to do the debugging myself if possible.
dwgread randomly crashes on same file (windows 7 64 bit)
https://api.github.com/repos/LibreDWG/libredwg/issues/125/comments
1
2019-07-22T16:52:09Z
2019-08-02T11:38:36Z
https://github.com/LibreDWG/libredwg/issues/125
471,188,369
125
[ "LibreDWG", "libredwg" ]
* unmaintained, * full of errors and missing pragmas, * trivial to implement properly by ourself The `test/testcases/` directory needs to go. * we don't want to depend on **expect** to check the tests. * move some of the useful tests over to unit-testing, * rewrite unit-testing for actual unit-testing errors and the API. the current tests are just printing some values, but not checking anything besides SEGV.
remove dejagnu
https://api.github.com/repos/LibreDWG/libredwg/issues/124/comments
0
2019-07-22T07:10:37Z
2019-07-25T14:03:51Z
https://github.com/LibreDWG/libredwg/issues/124
470,930,176
124
[ "LibreDWG", "libredwg" ]
ODA: 'ENC: This color is used by entities' But the dwg.spec and unknown don't care.
color ENC vs CMC
https://api.github.com/repos/LibreDWG/libredwg/issues/123/comments
3
2019-07-16T19:37:15Z
2020-04-11T07:28:02Z
https://github.com/LibreDWG/libredwg/issues/123
468,828,380
123
[ "LibreDWG", "libredwg" ]
system ar rarely supports the gold plugin and does not use it. problematic is also libtool, which uses some ar for the static lib, but clang would need llvm-ar and llvm-ranlib. gcc -flto -O3 catches many -Wnull-dereference bugs.
Add ar probe for -flto
https://api.github.com/repos/LibreDWG/libredwg/issues/122/comments
1
2019-07-16T17:50:28Z
2019-07-16T21:43:07Z
https://github.com/LibreDWG/libredwg/issues/122
468,785,005
122
[ "LibreDWG", "libredwg" ]
See branch `smoke/logging` It looks expensive, timings: ``` without with make check 0m12.034s 0m12.303s (mostly -v2) ./logs-all.sh 0m35.934s 0m37.324s (only -v4) ``` so it's neglectable. TODO -Wno-format-nonliteral
expand [rcount1], [rcount2] to [%d] for LOG_TRACE, better logging
https://api.github.com/repos/LibreDWG/libredwg/issues/121/comments
0
2019-07-15T07:21:38Z
2019-07-15T13:33:57Z
https://github.com/LibreDWG/libredwg/issues/121
467,975,839
121
[ "LibreDWG", "libredwg" ]
Consider attached [patch](https://github.com/LibreDWG/libredwg/files/3388944/decode-endian-fixes.txt). It might not be perfect and I've only tested it under FreeBSD (`#include <sys/endian.h>`), so some adjustments are most certainly in order for GNU/Linux and other systems, but it seems to fix R2004 decoding and allow to pass those tests. Patch for R2007 decoder would follow.
Add big-endian support
https://api.github.com/repos/LibreDWG/libredwg/issues/120/comments
4
2019-07-13T15:42:26Z
2023-04-13T08:39:18Z
https://github.com/LibreDWG/libredwg/issues/120
467,735,126
120
[ "LibreDWG", "libredwg" ]
with known str and hdl streams seperate the unknown bits into 3 instead of just one stream, to be analyzed offline. eg. ``` Object number: 242/F2, Size: 86/0x56, Hdlsize: 71, Type: 523 Warning: Unhandled Class object 523 ACDBASSOCGEOMDEPENDENCY (0x401) 242/0 Add object UNKNOWN_OBJ Decode object UNKNOWN_OBJ bitsize: 617, hdl_dat: @77.1 (9) obj string stream +616: @76.0 (608) has_strings: 1 @74.0 data_size: 442/0x1ba handle: 0.2.396 [5] num_reactors: 0 [BL 0] xdic_missing_flag: 1 [B 0] --common_size: 29 unknown_bits [649 (29,588,442) TF]: 40901b3fffffdfc80d815fcffff40c8da08031802200310020803980398037803180298034803680380036003280280032803900398029803a803100328037003a00248032005d00f0415080df50100c3fa2 padding: +71 MISSING ``` => 649-442-71 = 136 ``` unknown_dat [136 (...) TF]: 40901b3fffffdfc80d815fcffff40c8da08031802200 unknown_str [442 (...) TF]: 310020803980398037803180298034803680380036003280280032803900398029803a803100328037003a00248032005d unknown_hdl [71 (...) TF]: 00f0415080df50100c3fa2 ``` or just provide the seperators inside the brackets. unknown_bits [649 (136,442,71) TF]: [bitsize, (commonsize, hdloff, strsize)] 40901b3fffffdfc80d815fcffff40c8da08031802200310020803980398037803180298034803680380036003280280032803900398029803a803100328037003a00248032005d00f0415080df50100c3fa2
seperate unknown_bits into dat,hdl,str r2007+
https://api.github.com/repos/LibreDWG/libredwg/issues/119/comments
1
2019-07-13T09:33:36Z
2019-07-16T07:30:16Z
https://github.com/LibreDWG/libredwg/issues/119
467,697,699
119
[ "LibreDWG", "libredwg" ]
Hi, The FIELDLIST object does not correctly decode it's field handles because there is an owerhandle, reactors and xdic handle read missing. The following: START_HANDLE_STREAM; HANDLE_VECTOR (field_handles, num_fields, 0, 330); // 2 or 4, or 3.0.0 needs to change to (need to add ownerhandle to dwg_object_FIELDLIST structure): START_HANDLE_STREAM; FIELD_HANDLE (ownerhandle, 4, 0); REACTORS(4); XDICOBJHANDLE(3); HANDLE_VECTOR (field_handles, num_fields, 0, 330); // 2 or 4, or 3.0.0 Looking at the dwg.spec it seems to me that EVERY object should have: START_HANDLE_STREAM; FIELD_HANDLE (ownerhandle, 4, 0); REACTORS(4); XDICOBJHANDLE(3); // Further object handles start here before reading any other objects. Every object currently reads <num_reactors> and <xdic_missing_flag> so that says to me that these handles may exist at the start of the handles stream. I have tested this with several objects: FIELD - Already in issue #117 FIELDLIST MLEADERSTYLE - This needs the change I have suggested above A quick search through dwg.spec for "START_HANDLE_STREAM" showed many inconsistencies. For example, BLOCK_CONTROL (indeed all '_CONTROL' objects) had a missing REACTORS(4). Several other objects (such as TABLECONTENT) would start reading private object handles immediately after the START_HANDLE_STREAM. I propose that a new macro is created called "START_OBJECT_HANDLE_STREAM" which simply expands to START_HANDLE_STREAM; FIELD_HANDLE (ownerhandle, 4, 0); REACTORS(4); XDICOBJHANDLE(3); and that all objects call this instead of just START_HANDLE_STREAM; Below is the extract from the ODA spec for what is at the end of every object: Common Below begins the handles stream, this begins at offset specified by number of bits before handles above H Parent handle (soft pointer) H [Reactors (soft pointer)], repeated as many times as specified by the number of persistent reactors H xdictionary (hard owner), present if the has xdictionary flag is true X Object specific handles B* Padding bits are added until the next byte boundary is reached. RS CRC The CRC includes the size bytes.
FIELDLIST handles (and maybe many more objects) not decoded correctly
https://api.github.com/repos/LibreDWG/libredwg/issues/118/comments
3
2019-07-05T09:25:48Z
2019-07-07T18:52:58Z
https://github.com/LibreDWG/libredwg/issues/118
464,548,961
118
[ "LibreDWG", "libredwg" ]
Hi, The FIELD object does not decode correctly because: 1) Data is read into unallocated memory area. 2) The handles are not read from the handle stream. The following changes are needed: DECODER { if (_obj->num_childs) _obj->num_childs--; } //DEBUG_HERE_OBJ HANDLE_VECTOR (childs, num_childs, 3, 360); FIELD_BL (num_objects, 97); HANDLE_VECTOR (objects, num_objects, 5, 331); should change to: (The handles are read later, also the decrement of num_childs is not needed - there are num_childs handles later) //DECODER { if (_obj->num_childs) _obj->num_childs--; } //DEBUG_HERE_OBJ //HANDLE_VECTOR (childs, num_childs, 3, 360); FIELD_BL (num_objects, 97); //HANDLE_VECTOR (objects, num_objects, 5, 331); then: REPEAT_N((long)FIELD_VALUE(num_childval), childval, Dwg_FIELD_ChildValue) should change to: (The memory needs to be allocated for the child values) REPEAT(num_childval, childval, Dwg_FIELD_ChildValue) and finally, add the following field to dwg_object_FIELD structure: BITCODE_H ownerhandle; and then add the following to the end of the decode spec so that the handles can be read: START_HANDLE_STREAM; FIELD_HANDLE (ownerhandle, 4, 0); REACTORS(4); XDICOBJHANDLE(3); HANDLE_VECTOR (childs, num_childs, 3, 360); HANDLE_VECTOR (objects, num_objects, 5, 331);
Invalid FIELD object decoding
https://api.github.com/repos/LibreDWG/libredwg/issues/117/comments
0
2019-07-05T08:50:54Z
2019-07-07T18:12:16Z
https://github.com/LibreDWG/libredwg/issues/117
464,534,186
117