1
0
Fork 0
forked from len0rd/rockbox

FS #7247 by Gerhard Dirschl. Fixes bufferoverflow in radio code.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13554 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2007-06-04 21:38:23 +00:00
parent 28429184d0
commit d3f1070d80
2 changed files with 3 additions and 2 deletions

View file

@ -1098,7 +1098,7 @@ static int radio_add_preset(void)
static int selected_preset = -1; static int selected_preset = -1;
static int radio_edit_preset(void) static int radio_edit_preset(void)
{ {
char buf[MAX_FMPRESET_LEN]; char buf[MAX_FMPRESET_LEN + 1];
if (num_presets > 0) if (num_presets > 0)
{ {
@ -1357,7 +1357,7 @@ static int scan_presets(void)
{ {
const struct fm_region_setting * const fmr = const struct fm_region_setting * const fmr =
&fm_region[global_settings.fm_region]; &fm_region[global_settings.fm_region];
char buf[MAX_FMPRESET_LEN]; char buf[MAX_FMPRESET_LEN + 1];
int i; int i;
curr_freq = fmr->freq_min; curr_freq = fmr->freq_min;

View file

@ -296,6 +296,7 @@ Nathan Hepting
Akio Idehara Akio Idehara
Dagni McPhee Dagni McPhee
Alex Gerchanovsky Alex Gerchanovsky
Gerhard Dirschl
The libmad team The libmad team
The wavpack team The wavpack team
The ffmpeg team The ffmpeg team