php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68675 Off-by-one out-of-boudns write
Submitted: 2014-12-29 02:01 UTC Modified: 2014-12-30 03:52 UTC
From: bugreports at internot dot info Assigned:
Status: Closed Package: mbstring related
PHP Version: master-Git-2014-12-29 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
 [2014-12-29 02:01 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /ext/mbstring/oniguruma/regcomp.c:

4240    for (j = 0; j < len && p < end; j++)
4241      to->s[i++] = *p++;

to->s[] may overflow, because i++ may get up to 24, and to->s is 24, causing a 1 byte OoB write.


Thanks,


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-30 02:53 UTC] aharvey@php.net
-Package: *General Issues +Package: mbstring related
 [2014-12-30 03:52 UTC] bugreports at internot dot info
-Status: Open +Status: Closed
 [2014-12-30 03:52 UTC] bugreports at internot dot info
This is invalid.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC