Changeset 5745

Show
Ignore:
Timestamp:
06/22/09 13:47:50 (5 years ago)
Author:
khali
Message:

Fix array initialization overrun. Reported by David Binderman.

Location:
lm-sensors/branches/lm-sensors-2.10
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-2.10/CHANGES

    r5738 r5745  
    88  Module i2c-piix4: ATI SB800 is not actually supported 
    99  Module it87: Properly decode -128 degrees C (2.6 backport) 
     10  Program eepromer: Fix array initialization overrun 
    1011  Program sensord: Fix a memory leak when a chip name is provided 
    1112  Program sensors: Fix a memory leak when a chip name is provided 
  • lm-sensors/branches/lm-sensors-2.10/prog/eepromer/eepromer.c

    r4231 r5745  
    403403        k=0; 
    404404 
    405         for(j=0;j<=MAX_BLK_SIZE;j++)buf[j]=0; 
     405        for(j=0;j<MAX_BLK_SIZE;j++) 
     406                buf[j]=0; 
    406407 
    407408 
     
    430431                        addr_cnt=addr_cnt + i + (delka==1?1:0); //+i 
    431432                         
    432                         for(j=0;j<=MAX_BLK_SIZE;j++)buf[j]=0; 
     433                        for(j=0;j<MAX_BLK_SIZE;j++) 
     434                                buf[j]=0; 
    433435 
    434436                        i=0; 
     
    509511        k=0; 
    510512 
    511         for(j=0;j<=MAX_BLK_SIZE;j++)buf[j]=0; 
     513        for(j=0;j<MAX_BLK_SIZE;j++) 
     514                buf[j]=0; 
    512515 
    513516