freeipmi/fix-buffer-overflow.patch

13 lines
736 B
Diff
Raw Normal View History

diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-freeipmi-1.2.5/libfreeipmi/sel/ipmi-sel-string-intel.c ./libfreeipmi/sel/ipmi-sel-string-intel.c
--- ../orig-freeipmi-1.2.5/libfreeipmi/sel/ipmi-sel-string-intel.c 2013-01-10 01:05:03.000000000 +0100
+++ ./libfreeipmi/sel/ipmi-sel-string-intel.c 2013-02-28 09:18:00.724771244 +0100
@@ -2333,7 +2333,7 @@
uint8_t dimm_slot_id;
char *error_type_str;
char *processor_socket_str;
- char channel_number_str[INTEL_EVENT_BUFFER_LENGTH];
+ char channel_number_str[INTEL_EVENT_BUFFER_LENGTH + 1];
char channel_number_char = 0;
char *dimm_slot_id_str;
int processor_socket_valid = 0;