2 comments:
Patch Set #10, Line 54: region
Why region and not node?
Patch Set #10, Line 78: memcpy(dst, node->data, node->size);
This could result in a buffer overflow if region->size < node->size.
Refactoring the code like so will fix the overflow and print the error on line 96:
true_size = min(region->size, node->size);
memcpy(dst, node->data, true_size);
To view, visit change 34535. To unsubscribe, or for help writing mail filters, visit settings.