Ticket #6151 (closed defect: fixed)

Bug contains 3 commit(s) | SVN Diffs for #6151

 

Opened 2 years ago

Last modified 3 months ago

UTF-7 converter tries to write past buffer boundaries

Reported by: hsivonen@... Assigned to: michaelow
Priority: major Milestone: 4.0
Component: conversion Version: 3.8.1
Keywords: Cc:
Load: Xref:
Java Version: 1.5.0_13-b05-237 (Apple) Operating System: Mac OS X 10.5.1
Project (C/J): ICU4J Weeks: 0.5
Review: yoshito

Description

UTF-7 converter tries to write past buffer boundaries and crashes.

Caused by: java.nio.BufferOverflowException

at java.nio.Buffer.nextPutIndex(Buffer.java:419) at java.nio.HeapCharBuffer.put(HeapCharBuffer.java:145) at com.ibm.icu.charset.CharsetUTF7$CharsetDecoderUTF7.decodeLoop(CharsetUTF7.java:238) at com.ibm.icu.charset.CharsetDecoderICU.toUnicodeWithCallback(CharsetDecoderICU.java:386) at com.ibm.icu.charset.CharsetDecoderICU.decode(CharsetDecoderICU.java:285) at com.ibm.icu.charset.CharsetDecoderICU.decodeLoop(CharsetDecoderICU.java:179)

Program that triggers the crash coming up.

Attachments

EncodingInfo.java (5.4 kB) - added by hsivonen@iki.fi on 01/18/08 00:41:38.
Test program that triggers the crash

Change History

01/18/08 00:41:38 changed by hsivonen@...

  • attachment EncodingInfo.java added.

Test program that triggers the crash

01/20/08 11:02:45 changed by grhoten

  • owner changed from somebody to michaelow.
  • weeks changed.
  • xref changed.
  • revw changed.
  • milestone changed from UNSCH to 4.0.

01/20/08 11:04:34 changed by grhoten

  • weeks set to 0.5.

01/21/08 14:56:03 changed by michaelow

  • status changed from new to assigned.
  • revw set to yoshito.

03/21/08 19:43:06 changed by yoshito

  • status changed from assigned to closed.
  • resolution set to fixed.

Add/Change #6151 (UTF-7 converter tries to write past buffer boundaries)




Anti spam check: