Lines 72-78
Link Here
|
72 |
// A quick sanity check -- make sure that the frameID is 4 uppercase Latin1 |
72 |
// A quick sanity check -- make sure that the frameID is 4 uppercase Latin1 |
73 |
// characters. Also make sure that there is data in the frame. |
73 |
// characters. Also make sure that there is data in the frame. |
74 |
|
74 |
|
75 |
if(!frameID.size() == (version < 3 ? 3 : 4) || header->frameSize() <= 0) { |
75 |
if(!frameID.size() == (version < 3 ? 3 : 4) || header->frameSize() < 0) { |
76 |
delete header; |
76 |
delete header; |
77 |
return 0; |
77 |
return 0; |
78 |
} |
78 |
} |
Lines 103-108
Link Here
|
103 |
return new UnknownFrame(data, header); |
103 |
return new UnknownFrame(data, header); |
104 |
} |
104 |
} |
105 |
|
105 |
|
|
|
106 |
if (header->frameSize() == 0) { |
107 |
return new UnknownFrame(data, header); |
108 |
} |
109 |
|
106 |
// updateFrame() might have updated the frame ID. |
110 |
// updateFrame() might have updated the frame ID. |
107 |
|
111 |
|
108 |
frameID = header->frameID(); |
112 |
frameID = header->frameID(); |