MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / checkHeader

Method checkHeader

common/Frame.cpp:392–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390
391
392void Frame::checkHeader(rrframeheader &h)
393{
394 if(h.flags != RR_EOF && (h.framew < 1 || h.frameh < 1 || h.width < 1
395 || h.height < 1 || h.x + h.width > h.framew || h.y + h.height > h.frameh))
396 {
397 throw(Error("Frame::checkHeader", "Invalid header"));
398 }
399}
400
401
402// Compressed frame

Callers

nothing calls this directly

Calls 1

ErrorClass · 0.50

Tested by

no test coverage detected