Boost field buffer size - crashes when trying to draw very deep UTF-8 trees

Test by nesting 30 shells
Patch from ArchLinux. Closes #65.
This commit is contained in:
Hisham Muhammad 2014-04-24 15:08:32 -03:00
parent a939cdf827
commit 2f30cd1070

View File

@ -469,7 +469,7 @@ static inline void Process_outputRate(RichString* str, int attr, char* buffer, i
}
static void Process_writeField(Process* this, RichString* str, ProcessField field) {
char buffer[128]; buffer[127] = '\0';
char buffer[256]; buffer[255] = '\0';
int attr = CRT_colors[DEFAULT_COLOR];
int baseattr = CRT_colors[PROCESS_BASENAME];
int n = sizeof(buffer) - 1;