Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fread length error in XMP #418

Closed
zerocrates opened this issue Aug 8, 2023 · 2 comments
Closed

fread length error in XMP #418

zerocrates opened this issue Aug 8, 2023 · 2 comments

Comments

@zerocrates
Copy link

Encountering an erroring 0-length read from fread when processing a JPEG:

[08-Aug-2023 14:45:00 UTC] PHP Fatal error:  Uncaught ValueError: fread(): Argument #2 ($length) must be greater than 0 in /var/www/webroot/ROOT/application/libraries/getid3/module.tag.xmp.php:149
Stack trace:
#0 /var/www/webroot/ROOT/application/libraries/getid3/module.tag.xmp.php(149): fread(Resource id #309, 0)
#1 /var/www/webroot/ROOT/application/libraries/getid3/module.tag.xmp.php(201): Image_XMP->_get_jpeg_header_data('/tmp/phpsVb4ti')
#2 /var/www/webroot/ROOT/application/libraries/getid3/module.tag.xmp.php(415): Image_XMP->_get_XMP_text('/tmp/phpsVb4ti')
#3 /var/www/webroot/ROOT/application/libraries/getid3/module.graphic.jpg.php(163): Image_XMP->__construct('/tmp/phpsVb4ti')
#4 /var/www/webroot/ROOT/application/libraries/getid3/getid3.php(778): getid3_jpg->Analyze()

I can share the triggering image but would rather not post it in the issue.

@zerocrates
Copy link
Author

I sent the file to the info email address.

JamesHeinrich added a commit that referenced this issue Aug 8, 2023
@JamesHeinrich
Copy link
Owner

Thanks for the sample file, fixed in cba30f6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants