Skip to content

Commit 9d5f48f

Browse files
committed
Add a comment to the sentinel check
A sentinel is sent in every message to find buffer encoding errors. Change-Id: I23e471517ffc3cdaa368a018308f585cd3d84624 Reviewed-by: Mårten Nordheim <[email protected]> Reviewed-by: Edward Welbourne <[email protected]>
1 parent ec5725c commit 9d5f48f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/platforms/webgl/webqt.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ window.onload = function () {
10081008
};
10091009
deserialize(obj.parameters, obj.parameterCount);
10101010
var magic = view.getUint32(offset);
1011-
if (magic !== 0xbaadf00d)
1011+
if (magic !== 0xbaadf00d) // sentinel expected at end of buffer
10121012
console.error('Invalid magic');
10131013
offset += 4;
10141014
if (offset !== buffer.byteLength)

0 commit comments

Comments
 (0)