This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9354 - iso_decode function illegal address access
Attached to Project:
Rockbox
Opened by Yoshihisa Uchida (Uchida) - Tuesday, 02 September 2008, 17:29 GMT+2
Opened by Yoshihisa Uchida (Uchida) - Tuesday, 02 September 2008, 17:29 GMT+2
|
DetailsFor
iso_decode(const unsigned char *iso, unsigned char *utf8, int cp, int count) (in firmware/common/unicode.c), if count > strlen(iso), then "iso" accesses an illegal address. Therefore, a fatal error might occur. |
This task depends upon
However, we have plenty of code in Rockbox without bounds checking. The philosophy is that we generally don't want to waste code space with unnecessarily defensive programming.
Have you discovered a crash in Rockbox caused by iso_decode()?
What is your real name, so I can give you proper credit?
I check the source that uses iso_decode(), because of it is sizeof(iso) >= count,
an illegal address is not accessed.
I'm sorry firing.
Finally, my real name is "Yoshihisa Uchida".