IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2016, 2:45:32 PM (10 years ago)
Author:
eugene
Message:

zero bytes at end of table data region; plug memleak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/table/F_table_varlength.c

    r38553 r39340  
    163163  memcpy (heap_ptr, data, Ndata);
    164164
     165  // zero out the extra bytes
     166  off_t Nextra = Nbytes - (heap_offset + Ndata);
     167  memset (&heap_ptr[Ndata], 0, Nextra);
     168
    165169  // *** now we add the data description to the table ***
    166170
Note: See TracChangeset for help on using the changeset viewer.