URL:
<http://savannah.gnu.org/bugs/?32264>
Summary: segfault in R13-R14 with --enable trace.
Project: LibreDWG
Submitted by: rallaz
Submitted on: jue 27 ene 2011 16:45:29 GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
If you compile LibreDWG with --enable trace and run:
export LIBREDWG_TRACE=9; ./test fileR14.dwg it crashes.
In file common_entity_handle_data.spec #line 17,18:
if (!FIELD_VALUE(isbylayerlt))
FIELD_HANDLE(ltype, 5);
is expanded as (pseudocode):
if ( !isbylayerlt)
HANDLE_ltype();
printf(stderr, "linetype %s", HANDLE_ltype);
#crashes because allways print HANDLE_ltype
If change the code to:
if (!FIELD_VALUE(isbylayerlt))
{
FIELD_HANDLE(ltype, 5);
}
is expanded as (pseudocode):
if ( !isbylayerlt)
{
HANDLE_ltype();
printf(stderr, "linetype %s", HANDLE_ltype);
{
#only print if linetype is decoded
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32264>
_______________________________________________
Mensaje enviado vía/por Savannah
http://savannah.gnu.org/