Revision: 75467
http://sourceforge.net/p/brlcad/code/75467
Author: starseeker
Date: 2020-04-20 13:54:12 +0000 (Mon, 20 Apr 2020)
Log Message:
-----------
Revert r75459. The save alternative to LZ4_decompress_fast is apparently not a
drop-in replacement. Attempting to raytrace with an active cache using this
call results in an unsuccessful (aborted) raytrace with NIST2.
Modified Paths:
--------------
brlcad/trunk/src/librt/cache.c
Modified: brlcad/trunk/src/librt/cache.c
===================================================================
--- brlcad/trunk/src/librt/cache.c 2020-04-20 13:46:17 UTC (rev 75466)
+++ brlcad/trunk/src/librt/cache.c 2020-04-20 13:54:12 UTC (rev 75467)
@@ -387,7 +387,7 @@
buffer = (uint8_t *)bu_malloc(dest->ext_nbytes, "buffer");
BU_ASSERT(dest->ext_nbytes < INT_MAX);
- ret = LZ4_decompress_safe((const char *)(external->ext_buf +
SIZEOF_NETWORK_LONG), (char *)buffer, external->ext_nbytes -
SIZEOF_NETWORK_LONG, (int)dest->ext_nbytes);
+ ret = LZ4_decompress_fast((const char *)(external->ext_buf +
SIZEOF_NETWORK_LONG), (char *)buffer, (int)dest->ext_nbytes);
if (ret > 0)
uncompressed = 1;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits