This doesn't handle refilling toybuf in the case where there's so much EXIF data before the header we're looking for that we hit the end of toybuf first. (In part because I couldn't decide whether to do that or switch to a scheme where we only ever lseek() around, reading big-endian shorts.) --- toys/posix/file.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)
0001-file-parse-JPEG-files-enough-to-pull-out-their-size-.patch
Description: Binary data
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
