2 comments:
File util/cbfstool/platform_fixups.c:
Patch Set #8, Line 14: size_t search_end_size = MIN(0, buffer_size(in) - 32 * KiB);
Should we ensure buffer_size(in) >= 32KiB?
I don't think it's necessary? In practice bootblocks will probably always be larger than that but I don't see a need to restrict things here.
Patch Set #8, Line 29: return NULL; /* Doesn't seem to be a Qualcomm image. */
because it matched w/ too early?
No, this means that we haven't found anything in the first 32KB. search_end_size is the size that the buffer shrinks to after we have buffer_seek()ed over 32KB. Added a comment to explain that better.
To view, visit change 41122. To unsubscribe, or for help writing mail filters, visit settings.