1 --- PHP_5_3/ext/standard/filters.c 2011/05/24 23:49:04 311406
2 +++ PHP_5_3/ext/standard/filters.c 2011/05/24 23:49:26 311407
3 @@ -1050,20 +1050,16 @@
5 } /* break is missing intentionally */
14 - nbl = (*ps >= 'A' ? *ps - 0x37 : *ps - 0x30);
17 + if (!isxdigit((int) *ps)) {
18 err = PHP_CONV_ERR_INVALID_SEQ;
21 - next_char = (next_char << 4) | nbl;
23 + next_char = (next_char << 4) | (*ps >= 'A' ? *ps - 0x37 : *ps - 0x30);