https://bz.apache.org/bugzilla/show_bug.cgi?id=69999

--- Comment #1 from Merih Mengisteab <[email protected]> ---
Confirmed — the issue is these two lines at 104-105:            

    *op++ = msb > 10 ? 'A' + msb - 10 : '0' + msb;                
    *op++ = lsb > 10 ? 'A' + lsb - 10 : '0' + lsb;                              
                                                                               
                                                                               
                                                                           When
a nibble is exactly 10 (0xA), > 10 is false so it hits '0' + 10 which gives ':'
(ASCII 58) instead of 'A'. Examples:                                            

    \n (0x0A) -> %0: instead of %0A                                             
    \xA0 -> %:0 instead of %A0                                       
    \xAA -> %:: instead of %AA                    
                                                                               
                                                                               
                                                                         
Changing both > 10 to >= 10 fixes it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to