php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63824 segfault when call svn_utf_cstring_to_utf8 failed.
Submitted: 2012-12-21 05:58 UTC Modified: 2013-12-13 07:52 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: mountkin at gmail dot com Assigned:
Status: Open Package: svn (PECL)
PHP Version: Irrelevant OS: centos
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mountkin at gmail dot com
New email:
PHP Version: OS:

 

 [2012-12-21 05:58 UTC] mountkin at gmail dot com
Description:
------------
The SVN module http://pecl.php.net/package/svn  calls svn_utf_cstring_to_utf8 to 
convert string to utf-8 encoding without checking the return value of 
svn_utf_cstring_to_utf8.  
When svn_utf_cstring_to_utf8 failed, the *dist pointer will be NULL. Thus the 
following call to svn_path_canonicalize would lead to a segfault.

Test script:
---------------
Call functions like svn_fs_is_file with a GBK encoding filename will cause segfault.



Patches

fix-segault-caused-by-svn_utf_cstring_to_utf8 (last revision 2012-12-21 06:00 UTC by mountkin at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-24 07:25 UTC] laruence@php.net
-Assigned To: +Assigned To: wez
 [2013-12-13 07:52 UTC] wez@php.net
-Status: Assigned +Status: Open -Assigned To: wez +Assigned To:
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 10:01:30 2024 UTC