forked fromAsyncHttpClient/async-http-client
- Notifications
You must be signed in to change notification settings - Fork0
Commit28e543c
committed
Clear Utf8ByteBufCharsetDecoder#splitCharBuffer once char is complete,closeAsyncHttpClient#1357
Motivation:When multiple non US-ASCII chars are split over several chunks,Utf8ByteBufCharsetDecoder crashes with BufferOverflowException.This happens because we don't clear the splitCharBuffer in-between andonly do so once decoding is done.Modifications:Clear Utf8ByteBufCharsetDecoder#splitCharBuffer once char is completeResult:No more BufferOverflowException1 parentb037426 commit28e543c
File tree
2 files changed
+3
-2
lines changed- netty-utils/src
- main/java/org/asynchttpclient/netty/util
- test/java/org/asynchttpclient/netty/util
2 files changed
+3
-2
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | | - | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments
Comments
(0)