pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/31222: php-mbstring's mb_encode_mimeheader() fix



>Number:         31222
>Category:       pkg
>Synopsis:       php-mbstring's mb_encode_mimeheader() fix
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 08 15:36:00 +0000 2005
>Originator:     sup
>Release:        NetBSD 3.99.8
>Organization:
        
>Environment:
        
        
System: NetBSD reef.back-street.net 3.99.8 NetBSD 3.99.8 (CF-R3E) #1: Mon Aug 
22 22:27:15 JST 2005 
taca%reef.back-street.net@localhost:/data/i386/obj/sys/arch/i386/compile/CF-R3E 
i386
Architecture: i386
Machine: i386
>Description:
        php-mbstring's mb_encode_mimeheader() has critial problem which
        recognize Japanese string as US-ASCII string.
>How-To-Repeat:
        Use ja-squirrelmail and use Japanese in subject.
>Fix:
        Apply this patch.

$NetBSD$

--- libmbfl/mbfl/mbfilter.c.orig        2005-04-22 14:03:38.000000000 +0900
+++ libmbfl/mbfl/mbfilter.c
@@ -1990,7 +1990,7 @@ mime_header_encoder_collector(int c, voi
                break;
 
        default:        /* ASCII */
-               if (!qp_table[(c & 0xff)]) { /* ordinary characters */
+               if (c >= 0 && c < 0x100 && !qp_table[(c & 0xff)]) { /* ordinary 
characters */
                        mbfl_memory_device_output(c, &pe->tmpdev);
                        pe->status1 = 1;
                } else if (pe->status1 == 0 && c == 0x20) {     /* repeat SPACE 
*/

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index