Changeset 1077


Ignore:
Timestamp:
03/02/11 17:43:28 (2 years ago)
Author:
pixeldoc2000
Message:

gui_show_memory_info() char buffer size was to small for none English language (cause Buffer overflow): http://chdk.kernreaktor.org/mantis/view.php?id=357 Added patch from quid.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui.c

    r1072 r1077  
    26822682//------------------------------------------------------------------- 
    26832683void gui_show_memory_info(int arg) { 
    2684     static char buf[64]; 
     2684    static char buf[96];    // buffer size was 64, size increased for none english language 
    26852685 
    26862686    sprintf(buf, lang_str(LANG_MSG_MEMORY_INFO_TEXT), core_get_free_memory(), MEMISOSIZE, &_start, &_end); 
Note: See TracChangeset for help on using the changeset viewer.