Chameleon

Chameleon Commit Details

Date:2011-12-23 19:13:57 (8 years 11 months ago)
Author:JrCs
Commit:1743
Parents: 1742
Message:Fix a buffer overflow
Changes:
M/trunk/i386/boot2/boot.c

File differences

trunk/i386/boot2/boot.c
763763
764764
765765
766
766
767767
768768
769769
static void getOSVersion()
{
strlcpy(gMacOSVersion,gBootVolume->OSVersion,sizeof(gMacOSVersion)+1);
strlcpy(gMacOSVersion, gBootVolume->OSVersion, sizeof(gMacOSVersion));
}
#define BASE 65521L /* largest prime smaller than 65536 */

Archive Download the corresponding diff file

Revision: 1743