avoid providing filename with NUL to quickcheck properties
authorJoey Hess <joeyh@joeyh.name>
Fri, 6 Nov 2020 19:13:14 +0000 (15:13 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 6 Nov 2020 19:15:33 +0000 (15:15 -0400)
commit907a0bcad6b7bcbe2d8ba6093bdcbb0e091e2318
tree986da6ab664feffb3d8b192a10f99af87beae756
parent1db49497e0dc6cb4055c36e57c1f0d8c148db585
avoid providing filename with NUL to quickcheck properties

instance Arbitrary [Char] allows that, and it's not a legal part of a
filename so can break processing them.

Noticed when prop_view_roundtrips failed.

The instance Arbitrary AssociatedFile avoids this problem.

This commit was sponsored by Mark Reidenbach on Patreon.
Annex/View.hs
Utility/Path.hs