com php-src: Fix bug #67390 insecure temporary file use in the configure script: acinclude.m4
| From: | Remi Collet | Date: | Fri, 06 Jun 2014 12:16:04 +0000 |
| Subject: | com php-src: Fix bug #67390 insecure temporary file use in the configure script: acinclude.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78721@lists.php.net to get a copy of this message | ||
Commit: 91bcadd85e20e50d3f8c2e9721327681640e6f16
Author: Remi Collet <remi@php.net> Fri, 6 Jun 2014 14:16:04 +0200
Parents: 56c9e22c1f4b860a1c0e76314fa97cc85626eb05
Branches: PHP-5.4 PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=91bcadd85e20e50d3f8c2e9721327681640e6f16
Log:
Fix bug #67390 insecure temporary file use in the configure script
Bugs:
https://bugs.php.net/67390
Changed paths:
M acinclude.m4
Diff:
diff --git a/acinclude.m4 b/acinclude.m4
index 448659f..25f3655 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1711,7 +1711,7 @@ int main(int argc, char *argv[])
{
FILE *fp;
long position;
- char *filename = "/tmp/phpglibccheck";
+ char *filename = tmpnam(NULL);
fp = fopen(filename, "w");
if (fp == NULL) {