Fix for #123804. Reset the unsigned integer variable before copying 3 bytes of data into it. r=bienvenu, sr=sspitzer, a=asa.

This commit is contained in:
cavin%netscape.com 2002-03-14 00:54:02 +00:00
Родитель 2d9017b586
Коммит 51c68bddc6
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -383,6 +383,7 @@ PRBool nsOEScanBoxes::Find50MailBoxes( nsIFileSpec* descFile)
while (dataOffset < strOffset) {
tag = (PRUint8) pBytes[dataOffset];
data = 0; // make sure all bytes are 0 before copying 3 bytes over.
memcpy( &data, &(pBytes[dataOffset + 1]), 3);
switch( tag) {
case 0x80: // id record