1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/gui
Thomas Martitz 7ba2d0160b 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
2014-01-09 23:17:38 +01:00
..
bitmap lists: Adapt put_line(). 2014-01-07 14:13:40 +01:00
charcell lists: Adapt put_line(). 2014-01-07 14:13:40 +01:00
skin_engine Oops, pasted to the wrong place. 2014-01-07 22:46:45 +01:00
backdrop.c really the last of the red this time 2010-01-29 08:39:08 +00:00
backdrop.h fix the last of the red... note to self, fix backdrop.h! 2010-01-29 08:25:24 +00:00
buttonbar.c Missed two spots. 2011-10-15 19:47:59 +00:00
buttonbar.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
color_picker.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
color_picker.h color_picker: a bit of rework for color_picker. 2010-02-11 14:18:31 +00:00
folder_select.c folder_select: fix problem when selecting / as folder. 2012-08-15 23:10:28 +02:00
folder_select.h New GUI browser to select one (or more) folders. 2012-07-30 21:20:51 +02:00
icon.c icons: Provide accessors to the icon format (mono or native). 2014-01-07 11:49:53 +01:00
icon.h icons: Provide accessors to the icon format (mono or native). 2014-01-07 11:49:53 +01:00
line.c put_line(): Limit and truncate inline strings to MAX_PATH+32. 2014-01-09 23:17:38 +01:00
line.h put_line(): Limit and truncate inline strings to MAX_PATH+32. 2014-01-09 23:17:38 +01:00
list.c lists: Adapt put_line(). 2014-01-07 14:13:40 +01:00
list.h lists: Adapt put_line(). 2014-01-07 14:13:40 +01:00
option_select.c skin_engine: Make pressing the setting bar touch region work 2012-07-06 14:28:34 +10:00
option_select.h skin_engine: Make pressing the setting bar touch region work 2012-07-06 14:28:34 +10:00
pitchscreen.c Make rbcodec/dsp includes more specific. 2012-04-29 17:31:30 -04:00
pitchscreen.h Fix red in bootloaders 2009-07-11 17:16:23 +00:00
quickscreen.c scroll_engine: Rename scroll_stop* functions to be more consistent with the lcd api. 2013-12-14 23:11:30 +01:00
quickscreen.h Quickscreen: 4th item 2009-08-29 14:42:03 +00:00
scrollbar.c Add new lcd_bmp and lcd_bmp_part APIs. 2011-11-08 21:34:46 +00:00
scrollbar.h New option for the bar tags: 'backdrop, <label>' will draw another image under the progressbar (only works with image and slider bars) 2011-01-24 09:04:28 +00:00
splash.c scroll_engine: Rename scroll_stop* functions to be more consistent with the lcd api. 2013-12-14 23:11:30 +01:00
splash.h Move some gcc extensions to new gcc_extensions.h header 2010-07-25 14:44:29 +00:00
statusbar-skinned.c skinengine: Rework skin loading so skins can be un/loaded individually. This also means that loading a .cfg which doesnt change themes shouldnt have them reloaded 2011-11-21 10:02:23 +00:00
statusbar-skinned.h Use buflib for all skin engine allocations. 2011-11-15 14:11:08 +00:00
statusbar.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
statusbar.h Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR. 2011-12-19 20:12:52 +00:00
usb_screen.c scroll_engine: Rename scroll_stop* functions to be more consistent with the lcd api. 2013-12-14 23:11:30 +01:00
usb_screen.h Fix warning on USB_NONE targets 2010-10-14 12:29:19 +00:00
viewport.c lcd-16bit: Remove {lss,lse,lst}_pattern fields from struct viewport. 2014-01-07 14:13:48 +01:00
viewport.h Commit FS#12321 - Touchscreen: List line padding, to more easily select lines 2011-10-17 17:38:10 +00:00
wps.c scroll_engine: Rename scroll_stop* functions to be more consistent with the lcd api. 2013-12-14 23:11:30 +01:00
wps.h Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR. 2011-12-19 20:12:52 +00:00
yesno.c scroll_engine: Rename scroll_stop* functions to be more consistent with the lcd api. 2013-12-14 23:11:30 +01:00
yesno.h Pull yesno_pop out of the radio code as it is a nice simple resuasble yesno api worth reusing 2011-07-21 06:40:01 +00:00