diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-06-04 21:38:23 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-06-04 21:38:23 +0000 |
| commit | d3f1070d8094eb312d2a360690939ec4eb84fabc (patch) | |
| tree | 815604a68d928042e6fcb96e67d53a8438661361 | |
| parent | 28429184d04ab8b4c6879bb69915827640de25f7 (diff) | |
| download | rockbox-d3f1070d8094eb312d2a360690939ec4eb84fabc.zip rockbox-d3f1070d8094eb312d2a360690939ec4eb84fabc.tar.gz rockbox-d3f1070d8094eb312d2a360690939ec4eb84fabc.tar.bz2 rockbox-d3f1070d8094eb312d2a360690939ec4eb84fabc.tar.xz | |
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
| -rw-r--r-- | apps/recorder/radio.c | 4 | ||||
| -rw-r--r-- | docs/CREDITS | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 575b887..a0e6c81 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c @@ -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; diff --git a/docs/CREDITS b/docs/CREDITS index fc4dbe0..d5ad63b 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -296,6 +296,7 @@ Nathan Hepting Akio Idehara Dagni McPhee Alex Gerchanovsky +Gerhard Dirschl The libmad team The wavpack team The ffmpeg team |