Bug #75810 [Com]: getenv with valid varname crashes ntdll.dll

From: Date: Fri, 12 Jan 2018 21:36:45 +0000
Subject: Bug #75810 [Com]: getenv with valid varname crashes ntdll.dll
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213514@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75810&edit=1 ID: 75810 Comment by: laurinkeithdavis at gmail dot com Reported by: laurinkeithdavis at gmail dot com Summary: getenv with valid varname crashes ntdll.dll Status: Feedback Type: Bug Package: PHP options/info functions Operating System: Windows 10 x64 Pro PHP Version: 7.1.13 Block user comment: N Private report: N New Comment: Oh, duh. :) https://gist.github.com/laurin1/a7ea63c2b8bc68a845a1b50e01c9c173 Previous Comments: ------------------------------------------------------------------------ [2018-01-12 21:29:40] ab@php.net You could pastebin it somewhere and just put the link, otherwise it'd be anyway too big for a comment. Thanks. ------------------------------------------------------------------------ [2018-01-12 20:32:31] laurinkeithdavis at gmail dot com Ah, I searched for the bug using 7.1.13, but didn't think about the fact that 7.2.1 was also just released. Should I move my notes to that bug? PHP 7.1.3 - VC14 x86 Non Thread Safe (2018-Jan-04 00:43:34) (from windows.php.net) I tried to post my php.ini file, but I get this message when I do: "Your comment looks like SPAM by its content. Please consider rewording." ------------------------------------------------------------------------ [2018-01-12 20:23:21] ab@php.net Thanks for the report. Looks pretty much like bug #75794. What is your exact PHP. Please post your php.ini. If possible, also a crash dump. Thanks. ------------------------------------------------------------------------ [2018-01-12 19:36:58] laurinkeithdavis at gmail dot com I'm pretty sure the change made for https://bugs.php.net/bug.php?id=75574 is the "cause", as getenv was modified, not just putenv. I don't know C well enough. I am trying to decipher the change that might be an issue, but no luck so far. ------------------------------------------------------------------------ [2018-01-12 19:14:42] laurinkeithdavis at gmail dot com Confirmed this does not occur in 7.1.12. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=75810 -- Edit this bug report at https://bugs.php.net/bug.php?id=75810&edit=1

« previous php.bugs (#213514) next »