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

add API for calling magic_setparam to change recursion limits #14

Open
pabs3 opened this issue Jul 24, 2019 · 2 comments

Comments

@pabs3
Copy link

commented Jul 24, 2019

At work we found a situation where the default recursion limits were resulting in an error when detecting some JPEG files. We discovered a workaround of setting the name recursion limit slightly higher, but we were not able to apply this workaround to our internal File::LibMagic based tool because File::LibMagic lacks a way to set the recursion limits.

It would be great to have this part of the libmagic API exposed by File::LibMagic for situations that require workarounds for adjusting the recursion limits and other parameters.

@autarch

This comment has been minimized.

Copy link
Collaborator

commented Jul 24, 2019

Yes, this sounds useful. As always, PRs are welcome. I should note that I only want to see additions to the newest (OO) version of the API. It seems like this should ideally be a constructor parameter. I think this would be quite easy to implement, as the XS side of this module is very simple.

@pabs3

This comment has been minimized.

Copy link
Author

commented Jul 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.