Fixed problem demonstrated by RepeatEosBit test + bumped copyrights

This commit is contained in:
Mikhail Yakshin 2019-04-17 15:25:44 +01:00
parent 86c9b7dccb
commit f8ead93c5a
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ namespace Kaitai
/// </summary>
public bool IsEof
{
get { return BaseStream.Position >= BaseStream.Length; }
get { return BaseStream.Position >= BaseStream.Length && BitsLeft == 0; }
}
/// <summary>

View File

@ -13,7 +13,7 @@ Further reading:
## Licensing
Copyright 2016-2017 Kaitai Project: MIT license
Copyright 2016-2019 Kaitai Project: MIT license
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the