diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-01-09 22:59:46 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-09 23:17:38 +0100 |
commit | 7ba2d0160b6b4bfd68fc1d0819858f7138e2d1d4 (patch) | |
tree | e1a185272ccaae14cb8c49befdac07e340a2abb9 /firmware/drivers | |
parent | 3be3a4013829a5d088904803bdd26e339eea61f0 (diff) | |
download | rockbox-7ba2d0160b6b4bfd68fc1d0819858f7138e2d1d4.tar.gz rockbox-7ba2d0160b6b4bfd68fc1d0819858f7138e2d1d4.zip |
put_line(): Limit and truncate inline strings to MAX_PATH+32.
Because inline strings have to be copied (to escape '$') the local buffer
can be exhaused. The code didn't check for this. The buffer is increased
to handle filenames plus some extra chars but truncates to avoid overflow.
If you have longer strings please pass them via $t tag, in which case
put_line() imposes no additional length-limitation.
Change-Id: I0ca20adbe72f6d44cb442f34d665c16b12cbbaeb
Diffstat (limited to 'firmware/drivers')
0 files changed, 0 insertions, 0 deletions