libredwg
[Top][All Lists]
Advanced

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

[libredwg] [bug #32264] segfault in R13-R14 with --enable trace.


From: Rallaz
Subject: [libredwg] [bug #32264] segfault in R13-R14 with --enable trace.
Date: Thu, 27 Jan 2011 16:45:30 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13

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/




reply via email to

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