Mercurial > libpst
comparison src/libpst.c @ 342:5d0dc4db45b3 stable-0-6-63
Daniel Gryniewicz found buffer overrun in LIST_COPY_TIME
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 27 Dec 2013 08:44:01 -0800 |
parents | c638905665bc |
children | a8577226f7a9 |
comparison
equal
deleted
inserted
replaced
341:c638905665bc | 342:5d0dc4db45b3 |
---|---|
2063 } | 2063 } |
2064 | 2064 |
2065 // malloc space and copy the item filetime | 2065 // malloc space and copy the item filetime |
2066 #define LIST_COPY_TIME(label, targ) { \ | 2066 #define LIST_COPY_TIME(label, targ) { \ |
2067 if ((list->elements[x]->type != 0x40) || \ | 2067 if ((list->elements[x]->type != 0x40) || \ |
2068 (list->elements[x]->size != sizeof(FILETIME)) { \ | 2068 (list->elements[x]->size != sizeof(FILETIME))) { \ |
2069 DEBUG_WARN(("src not 0x40 or wrong length for filetime dst\n")); \ | 2069 DEBUG_WARN(("src not 0x40 or wrong length for filetime dst\n")); \ |
2070 DEBUG_HEXDUMP(list->elements[x]->data, list->elements[x]->size); \ | 2070 DEBUG_HEXDUMP(list->elements[x]->data, list->elements[x]->size); \ |
2071 } \ | 2071 } \ |
2072 else { \ | 2072 else { \ |
2073 targ = (FILETIME*) pst_realloc(targ, sizeof(FILETIME)); \ | 2073 targ = (FILETIME*) pst_realloc(targ, sizeof(FILETIME)); \ |