[php-src] Issue #15547: Integer overflow in curl_multi_select

From: Date: Thu, 22 Aug 2024 20:26:10 +0000
Subject: [php-src] Issue #15547: Integer overflow in curl_multi_select
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247576@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15547 Author: Lerchensporn ### Description In this code line, the timeout is casted to unsigned long: https://github.com/php/php-src/blob/f952263bcd699f1067b568f2e17b2f5936efd9a1/ext/curl/multi.c#L190 But the function expects a signed int, see https://curl.se/libcurl/c/curl_multi_wait.html In consequence, passing a large timeout to the PHP function curl_multi_select causes undefined behavior according to the C standard. Usually it would it caused 100% CPU usage. ### PHP Version PHP 8.3.10 ### Operating System _No response_

« previous php.bugs (#247576) next »