FreeBSD Bugzilla – Attachment 120656 Details for
Bug 163476
[SECURITY] out of bounds access in _canonicalize devel/icu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 831 bytes, created by
Andrei Lavreniyuk
on 2011-12-20 12:20:11 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
Andrei Lavreniyuk
Created:
2011-12-20 12:20:11 UTC
Size:
831 bytes
patch
obsolete
>--- common/uloc.cpp >+++ common/uloc.cpp >@@ -1797,7 +1797,7 @@ > int32_t variantLen = _deleteVariant(variant, uprv_min(variantSize, (nameCapacity-len)), variantToCompare, n); > len -= variantLen; > if (variantLen > 0) { >- if (name[len-1] == '_') { /* delete trailing '_' */ >+ if (len > 0 && name[len-1] == '_') { /* delete trailing '_' */ > --len; > } > addKeyword = VARIANT_MAP[j].keyword; >@@ -1805,7 +1805,7 @@ > break; > } > } >- if (name[len-1] == '_') { /* delete trailing '_' */ >+ if (len > 0 && len <= nameCapacity && name[len-1] == '_') { /* delete trailing '_' */ > --len; > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 163476
: 120656