php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68691 explicit uninitalized pointer
Submitted: 2014-12-30 04:19 UTC Modified: 2016-09-04 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: bugreports at internot dot info Assigned: cmb (profile)
Status: No Feedback Package: PHAR related
PHP Version: master-Git-2014-12-30 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugreports at internot dot info
New email:
PHP Version: OS:

 

 [2014-12-30 04:19 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /ext/phar/phar_path_check.c:
if the 'yy2' goto:

 96yy2:
 97        YYCURSOR = YYMARKER;

'YYMARKER' is never actually initalized. It should be YYMARKET = YYCURSOR.


Thanks,


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-30 04:21 UTC] bugreports at internot dot info
Ok, I should have proof-read that.

I meant:

if the 'yy2' goto is ever executed, it will cause problems:
[..]

[..] It should be YYMARKER = YYCURSOR.


Thanks,
 [2016-08-25 10:28 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-08-25 10:28 UTC] cmb@php.net
It seems to me that YYMARKER is always properly initialized before
yy2: is reached. Can you point out a code path where it is not?
 [2016-09-04 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 22:01:31 2024 UTC