Skip to content

Commit

Permalink
Fixed problem demonstrated by RepeatEosBit test + bumped copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyCat committed Apr 17, 2019
1 parent 86c9b7d commit f8ead93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion KaitaiStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public KaitaiStream(byte[] bytes) : base(new MemoryStream(bytes))
/// </summary>
public bool IsEof
{
get { return BaseStream.Position >= BaseStream.Length; }
get { return BaseStream.Position >= BaseStream.Length && BitsLeft == 0; }
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8ead93

Please sign in to comment.