Browse Source

Fix stream check for InStream::getptr()

This call should have been preceeded by hasData() or avail(), just like
all other accessor functions.
tags/v1.12.90
Pierre Ossman 1 year ago
parent
commit
7b1be722af
1 changed files with 0 additions and 3 deletions
  1. 0
    3
      common/rdr/InStream.h

+ 0
- 3
common/rdr/InStream.h View File

@@ -166,9 +166,6 @@ namespace rdr {
// some other stream API.

inline const U8* getptr(size_t length) { check(length);
#ifdef RFB_INSTREAM_CHECK
checkedBytes += length;
#endif
return ptr; }
inline void setptr(size_t length) { if (length > avail())
throw Exception("Input stream overflow");

Loading…
Cancel
Save