mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Fix hexdigit conversion in the pcre parser
The pcre parser in the dfa backend is not correctly converting escaped hex string like \0x0d This is the minimal patch to fix, and we should investigate just using the C/C++ conversion routines here. I also I nominated for the 2.7 series. Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Seth Arnold <seth.arnold@gmail.com>
This commit is contained in:
parent
c9e31b7fbd
commit
954dc6f694
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ int hexdigit(char c)
|
|||
else if (c >= 'A' && c <= 'F')
|
||||
return 10 + c - 'A';
|
||||
else if (c >= 'a' && c <= 'f')
|
||||
return 10 + c - 'A';
|
||||
return 10 + c - 'a';
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue