-
Notifications
You must be signed in to change notification settings - Fork 992
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 does not stop when input is unsupported (e.g. binary file) #2834
Comments
This is a valid concern of course.
Overall, this is not as simple as it looks. One possible way to approach this problem is to sniff popular file formats from the initial bytes, similar to how we detect a BOM mark currently. But even then care must be taken not to fall into the same sin as Excel with its ID column bug. This could be a good place to start. |
agree we should err strongly on the side of false positives for identifying valid input. is there any security/crash vulnerability from allowing arbitrary binary files to be parsed? if not, I don't see much cost to delegating this to the user. it seems almost certain to wind up with a 1x1 what would happen if fill = TRUE? |
Closed pending further motivation to support anything here. |
For instance, if user put a random png file as input, no error is raised:
We get:
We even get a data table:
Note sure I should, but I would expect failure instead.
The text was updated successfully, but these errors were encountered: