Skip to content
Permalink
Browse files Browse the repository at this point in the history
BugFix - data length
Even tho this is a "LONG" type, it's actually only 4 bytes. Typecasting
it to a long* caused a dereference beyond the end of the allocated
region.

issues#28
  • Loading branch information
Yeraze committed Feb 23, 2017
1 parent 9d32c6c commit f98f5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ytnef.c
Expand Up @@ -1390,7 +1390,7 @@ void MAPIPrint(MAPIProps *p) {
printf("] (%llu)\n", ddword_tmp);
break;
case PT_LONG:
printf(" Value: %li\n", *((long*)mapidata->data));
printf(" Value: %i\n", *((int*)mapidata->data));
break;
case PT_I2:
printf(" Value: %hi\n", *((short int*)mapidata->data));
Expand Down

0 comments on commit f98f5d4

Please sign in to comment.