Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usrloc User-Agent filtering: Fix memory corruption
The "ua_re_check" macro added by commit e5cb980 is broken in several ways: * unsafe read operation on shared memory * unsafe write operation on shared memory * incorrectly handled error case, without restoring the backup byte This patch corrects the above issues by extending the user_agent buffer. (cherry picked from commit 58a944c) Includes fix commits: - 03398fb - e16abb4
- Loading branch information
1 parent
c8ee7d5
commit a9bdf7b
Showing
3 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters