fixed #589
authorYann Collet <cyan@fb.com>
Tue, 9 Oct 2018 21:37:51 +0000 (14:37 -0700)
committerYann Collet <cyan@fb.com>
Tue, 9 Oct 2018 21:37:51 +0000 (14:37 -0700)
commit6902fa48925ed22cd37bb4262205437feb8d2420
treeb0fbe807adaa8227f2231df4c15dfe9e1709c4ac
parente07a37d712c87b6d47d043b018e4ff86d31996b3
fixed #589

following recommendations by @raggi.

The fix is slightly different, but achieves the same goal,
and is backed by a test tool which proves that it works
(generates the error before the patch, no longer after the patch).
lib/lz4frame.c