bogus header overflow

pull/14/head
Tom Early 6 years ago
parent b77be8d81e
commit 65a148eb53

@ -1023,7 +1023,7 @@ void CQnetGateway::ProcessIncomingSD(const SDSVT &dsvt)
sd.first = false; sd.first = false;
break; break;
case 0x50U: // header case 0x50U: // header
if (sd.size + sd.ih < 41) { if (sd.size + sd.ih < 42) {
memcpy(sd.header+sd.ih, c+1, size); memcpy(sd.header+sd.ih, c+1, size);
sd.ih += size; sd.ih += size;
if (sd.ih == 41) { if (sd.ih == 41) {

Loading…
Cancel
Save

Powered by TurnKey Linux.