Join GitHub today
add API for calling magic_setparam to change recursion limits #14
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.
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.