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:
parent
28429184d0
commit
d3f1070d80
2 changed files with 3 additions and 2 deletions
|
@ -1098,7 +1098,7 @@ static int radio_add_preset(void)
|
|||
static int selected_preset = -1;
|
||||
static int radio_edit_preset(void)
|
||||
{
|
||||
char buf[MAX_FMPRESET_LEN];
|
||||
char buf[MAX_FMPRESET_LEN + 1];
|
||||
|
||||
if (num_presets > 0)
|
||||
{
|
||||
|
@ -1357,7 +1357,7 @@ static int scan_presets(void)
|
|||
{
|
||||
const struct fm_region_setting * const fmr =
|
||||
&fm_region[global_settings.fm_region];
|
||||
char buf[MAX_FMPRESET_LEN];
|
||||
char buf[MAX_FMPRESET_LEN + 1];
|
||||
int i;
|
||||
|
||||
curr_freq = fmr->freq_min;
|
||||
|
|
|
@ -296,6 +296,7 @@ Nathan Hepting
|
|||
Akio Idehara
|
||||
Dagni McPhee
|
||||
Alex Gerchanovsky
|
||||
Gerhard Dirschl
|
||||
The libmad team
|
||||
The wavpack team
|
||||
The ffmpeg team
|
||||
|
|
Loading…
Reference in a new issue