added missing check for invalid position in *DataField::read() and require remainder to be at least 1 byte long, formatting

This commit is contained in:
john30
2016-11-19 11:56:17 +01:00
parent 2d9599a467
commit c3b341d1ba
2 changed files with 16 additions and 15 deletions
+3 -3
View File
@@ -294,11 +294,11 @@ public:
/**
* Get whether this field uses a full byte offset.
* @param after @p true to check after consuming the bits, false to check before.
* @return true if this field uses a full byte offset, false if this field
* @param after @p true to check after consuming the bits, @p false to check before.
* @return @p true if this field uses a full byte offset, @p false if this field
* only consumes a part of a byte and a subsequent field may re-use the same offset.
*/
virtual bool hasFullByteOffset(bool after);
bool hasFullByteOffset(bool after);
// @copydoc
virtual void dump(ostream& output);