-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
∞-loop, space==bound in primMapByteStringBounded (#204)
* ∞-loop, space==bound in primMapByteStringBounded In primMapByteStringBounded, when the potentially needed space for encoding one more byte (the 'bound' of the provided BoundedPrim) is exactly equal to the free space in the output buffer, we must fill the buffer, rather than signal BufferFull. Otherwise, when we ask for "bounded" more bytes, no new space is allocated, and an infinite loop follows. * Fix findSubstrings CI * Cabal file fixes - Add missing other-modules - Update QuickCheck bounds - Use same QuickCheck bounds in tests .cabal file. * Add 8.10 to test matrix Also dropping "head" which (being 8.7) is no longer worth testing. Noting: - GHC 7.0 fails to build QuickCheck 1.13, because it pulls in "text" 1.2.4.0 which in turn fails to build. - GHC 7.2 fails the "hPutBuilder test", because random Unicode Strings don't roundtrip read/write in GHC 7.2. Fixing this requires limiting the range of test inputs when GHC is too old. Co-authored-by: Viktor Dukhovni <[email protected]>
- Loading branch information
Showing
5 changed files
with
56 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,8 @@ Author: Don Stewart, | |
Maintainer: Duncan Coutts <[email protected]> | ||
Homepage: https://github.com/haskell/bytestring | ||
Bug-reports: https://github.com/haskell/bytestring/issues | ||
Tested-With: GHC==7.10.1, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2, GHC==6.12.3 | ||
Tested-With: GHC==8.10.1, GHC==8.8.1, GHC==8.6.3, GHC==8.4.4, GHC==8.2.2, | ||
GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2 | ||
Build-Type: Simple | ||
Cabal-Version: >= 1.10 | ||
extra-source-files: README.md Changelog.md | ||
|
@@ -150,10 +151,19 @@ test-suite prop-compiled | |
other-modules: Rules | ||
QuickCheckUtils | ||
TestFramework | ||
Data.ByteString | ||
Data.ByteString.Char8 | ||
Data.ByteString.Internal | ||
Data.ByteString.Lazy | ||
Data.ByteString.Lazy.Char8 | ||
Data.ByteString.Lazy.Internal | ||
Data.ByteString.Short | ||
Data.ByteString.Short.Internal | ||
Data.ByteString.Unsafe | ||
hs-source-dirs: . tests | ||
build-depends: base, ghc-prim, deepseq, random, directory, | ||
test-framework, test-framework-quickcheck2, | ||
QuickCheck >= 2.10 && < 2.14 | ||
QuickCheck >= 2.10 && < 2.15 | ||
c-sources: cbits/fpstring.c | ||
include-dirs: include | ||
ghc-options: -fwarn-unused-binds | ||
|
@@ -191,14 +201,31 @@ test-suite test-builder | |
type: exitcode-stdio-1.0 | ||
hs-source-dirs: . tests tests/builder | ||
main-is: TestSuite.hs | ||
other-modules: Data.ByteString.Builder.Tests | ||
Data.ByteString.Builder.Prim.Tests | ||
other-modules: Data.ByteString | ||
Data.ByteString.Internal | ||
Data.ByteString.Lazy | ||
Data.ByteString.Lazy.Internal | ||
Data.ByteString.Short | ||
Data.ByteString.Short.Internal | ||
Data.ByteString.Unsafe | ||
Data.ByteString.Builder | ||
Data.ByteString.Builder.ASCII | ||
Data.ByteString.Builder.Extra | ||
Data.ByteString.Builder.Internal | ||
Data.ByteString.Builder.Prim | ||
Data.ByteString.Builder.Prim.ASCII | ||
Data.ByteString.Builder.Prim.Binary | ||
Data.ByteString.Builder.Prim.Internal | ||
Data.ByteString.Builder.Prim.Internal.Base16 | ||
Data.ByteString.Builder.Prim.Internal.Floating | ||
Data.ByteString.Builder.Prim.Internal.UncheckedShifts | ||
Data.ByteString.Builder.Prim.TestUtils | ||
Data.ByteString.Builder.Prim.Tests | ||
Data.ByteString.Builder.Tests | ||
TestFramework | ||
|
||
build-depends: base, ghc-prim, | ||
deepseq, | ||
QuickCheck >= 2.10 && < 2.14, | ||
QuickCheck >= 2.10 && < 2.15, | ||
byteorder == 1.0.*, | ||
dlist >= 0.5 && < 0.9, | ||
directory, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters