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

sizeOf returns valid values on invalid file #391

Open
HydraOrc opened this issue Nov 30, 2023 · 0 comments
Open

sizeOf returns valid values on invalid file #391

HydraOrc opened this issue Nov 30, 2023 · 0 comments

Comments

@HydraOrc
Copy link

HydraOrc commented Nov 30, 2023

For example I create a file and name it php.jpg, and inside I put such content:

GIF87a
<?php
	echo "testing";
?>

sizeOf(buffer) returns

{ height: 28735, width: 15370, type: 'gif' }

It is neither jpg, nor gif, and still processed

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