|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-01-08 08:23 UTC] laruence@php.net
[2015-01-08 08:45 UTC] laruence@php.net
-Status: Open
+Status: Feedback
[2015-01-18 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
Description: ------------ Hi, In /ext/fileinfo/libmagic/softmagic.c there is a dangling pointer / pointer to local outside scope: 2158 pattern_offset = &offsetcopy; 2159 } ZEND_HASH_FOREACH_END(); [..] 2163 if ((pattern_match != NULL) && (pattern_offset != NULL)) { 2164 ms->search.s += Z_LVAL_P(pattern_offset); /* this is where the match starts */ 2165 ms->search.offset += Z_LVAL_P(pattern_offset); /* this is where the match starts as size_t */ 2166 ms->search.rm_len = Z_STRLEN_P(pattern_match) /* This is the length of the matched pattern */; Thanks,