Skip to content

limit file read for magic numbers#17

Merged
fdncred merged 1 commit into
fdncred:mainfrom
Tyarel8:limit-read
Jul 1, 2026
Merged

limit file read for magic numbers#17
fdncred merged 1 commit into
fdncred:mainfrom
Tyarel8:limit-read

Conversation

@Tyarel8

@Tyarel8 Tyarel8 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

I didn't realize I put a regular read of the file just to check the magic numbers, which would consume a lot of resources if the file is big. Now, it only reads a maximum of 8KiB, which is still more than enough.

@fdncred

fdncred commented Jul 1, 2026

Copy link
Copy Markdown
Owner

oh, wow. i totally missed that too. good catch!

@fdncred fdncred merged commit bf909c7 into fdncred:main Jul 1, 2026
5 checks passed
@Tyarel8 Tyarel8 deleted the limit-read branch July 1, 2026 12:37
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

Successfully merging this pull request may close these issues.

2 participants