php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13801 error in imap_rfc822_parse_adrlist
Submitted: 2001-10-23 14:01 UTC Modified: 2001-12-07 11:48 UTC
From: philip dot steeman at kh dot khbo dot be Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0CVS-2001-10-23 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: philip dot steeman at kh dot khbo dot be
New email:
PHP Version: OS:

 

 [2001-10-23 14:01 UTC] philip dot steeman at kh dot khbo dot be
The function imap_rfc822_parse_adrlist changes its parameters.

Some code:
<?php
  $val = "philip steeman <philip.steeman@kh.khbo.be>";
  $rij = imap_rfc822_parse_adrlist($val, "xx.khbo.be");
  $philip=fopen("/tmp/philip3.log", "a");
  fputs($philip, "$val\n");
  fclose($philip);
?>

After calling imap_rfc822_parse_adrlist the value of $val
has changed.
There is a NULL-char between 'steeman' and '<'.

This error occurs in PHP4-CVS-18/10/2001 (23/10 doesn't compile for the moment, so I couldn't check it).

With PHP 4.0.4pl1 everything is OK.

Philip

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-07 11:48 UTC] thies@php.net
fixed in HEAD and 4.1-branch

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC