8000 Fix strncasecmp size parameter off by ones by disconnect3d · Pull Request #679 · nzbget/nzbget · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Fix strncasecmp size parameter off by ones #679

Merged
merged 1 commit into from
Apr 20, 2020

Conversation

disconnect3d
Copy link
Contributor

The "http://" string has 7 bytes without nullbyte so the size in strncasecmp(nzbContent, "http://", 6) is off by one.

The same goes for "https://" string.

The "http://" string has 7 bytes without nullbyte so the size in `strncasecmp(nzbContent, "http://", 6)` is off by one.

The same goes for `"https://"` string.
@hugbug hugbug closed this Apr 20, 2020
@hugbug hugbug reopened this Apr 20, 2020
@hugbug hugbug merged commit 575b823 into nzbget:develop Apr 20, 2020
@hugbug
Copy link
Member
hugbug commented Apr 20, 2020

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0