Bug #75936 [Fbk->NoF]: Strpos offset of type long and haystack len of type int

From: Date: Sun, 24 Jun 2018 04:25:40 +0000
Subject: Bug #75936 [Fbk->NoF]: Strpos offset of type long and haystack len of type int
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215923@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75936&edit=1 ID: 75936 Updated by: php-bugs@lists.php.net Reported by: sed dot baddou at gmail dot com Summary: Strpos offset of type long and haystack len of type int -Status: Feedback +Status: No Feedback Type: Bug Package: Strings related Operating System: Linux PHP Version: Irrelevant Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2018-02-09 13:40:51] ab@php.net Thanks for the report. Please link to the places you've found. Note - it is a won't fix in PHP 5, need to check thoroughly in PHP 7. Thanks. ------------------------------------------------------------------------ [2018-02-08 17:12:08] sed dot baddou at gmail dot com Description: ------------ While I was reading strpos source code, I stumbeled across multiple versions where haystack_len is declared as int, while offset is long, correct me if i'm wrong but if haystack len exceeds intmax value wont it underflow and give incorrect values. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75936&edit=1

« previous php.bugs (#215923) next »