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

Name use count (30) exceeded error with file on TIFF image #45

Open
joseneto opened this issue Oct 25, 2022 · 0 comments
Open

Name use count (30) exceeded error with file on TIFF image #45

joseneto opened this issue Oct 25, 2022 · 0 comments

Comments

@joseneto
Copy link

joseneto commented Oct 25, 2022

I getting this random error on jpeg file

FileMagic::FileMagicError
failed lookup: JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=13, height=3072, manufacturer=Google, model=Pixel 7 Pro, orientation=upper-left, xresolution=189, yresolution=197, resolutionunit=2, software=HDR+ 1.0.479933560zd, datetime=2022:10:14 16:52:27, GPS-Data, width=4080] name use count (30) exceeded 

After some research looks like its happen with some linux distros, at least I can't reproduce on MAC. Looks like the solution is increase the name recursion level.

https://bugs.astron.com/view.php?id=152

file --parameter name=50 test.jpg

The magic_getparam() and magic_setparam() allow getting and setting
various limits related to the magic library.

       Parameter                    Type      Default
       MAGIC_PARAM_INDIR_MAX        size_t    15
       MAGIC_PARAM_NAME_MAX         size_t    30
       MAGIC_PARAM_ELF_NOTES_MAX    size_t    256
       MAGIC_PARAM_ELF_PHNUM_MAX    size_t    128
       MAGIC_PARAM_ELF_SHNUM_MAX    size_t    32768
       MAGIC_PARAM_REGEX_MAX        size_t    8192
       MAGIC_PARAM_BYTES_MAX        size_t    1048576

I would like to know if this gem allow me pass any parameters?

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

1 participant