From e74b1aa13b2bcead101754e104398bd3e9832ff2 Mon Sep 17 00:00:00 2001 From: gdt Date: Tue, 30 Nov 2021 13:21:59 +0000 Subject: [PATCH] cad/libredwg: Update to 0.12.2 LibreDWG version 0.12.2 - 2021/02/23 - beta: Minor bugfixes: * Fixed extending the write buffer for the 2 CRC bytes. Occurs very seldomly (GH #315) LibreDWG version 0.12.1 - 2021/01/31 - beta: Major bugfixes: * fixed dwg_bmp() and dwgbmp for >= r2004. Wrong dat offset. * Fixed EED with code 3 for layer handles. (Fixes GH #310, shanzhugit) * Fixed bit_convert_TU utf8 conversion with ubsan, wrong endian-ness. Various fuzzing errors detected and fuzzed by Chew Kin Zhong (See GH #304): * Fix possible null-deref with broken DWG's in dwg_get_first_object. * Fix possible null-deref with broken DWG's in dwg_find_class with empty CLASS.dxfname. (GH #309) * Fix possible null-deref with broken DWG's in dwglayers with empty LAYER.name. (GH #308) * Fix short integer overflow in EED checks when decoding malcrafted DWG's, which also led to encode buffer overflows. (GH #307) * Fix possible null-derefs with broken DWG's in json export. (GH #306) * Fix possible null-deref with broken DWG's in dwg_next_entity iterator. (GH #305) * Fix wrong TFF overflow check for static strings, where we cannot set the string nor the size. (GH #304) * Fix heap-overflows and invalid free's when decoding broken 3DSOLID's in malcrafted DWG's. Only accept version 1 and 2. (GH #304) Minor features: * Added string converters with known TU sizes: bit_TU_to_utf8_len, bit_read_TU_len. --- cad/libredwg/Makefile | 5 ++--- cad/libredwg/distinfo | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cad/libredwg/Makefile b/cad/libredwg/Makefile index fbf8896b130d..75fd95ff86f3 100644 --- a/cad/libredwg/Makefile +++ b/cad/libredwg/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.3 2021/05/24 19:49:12 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2021/11/30 13:21:59 gdt Exp $ # -DISTNAME= libredwg-0.12 -PKGREVISION= 2 +DISTNAME= libredwg-0.12.2 CATEGORIES= cad MASTER_SITES= https://ftp.gnu.org/gnu/libredwg/ EXTRACT_SUFX= .tar.xz diff --git a/cad/libredwg/distinfo b/cad/libredwg/distinfo index 2ef72d2aa375..7a35214698a7 100644 --- a/cad/libredwg/distinfo +++ b/cad/libredwg/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.3 2021/10/26 10:04:13 nia Exp $ +$NetBSD: distinfo,v 1.4 2021/11/30 13:21:59 gdt Exp $ -BLAKE2s (libredwg-0.12.tar.xz) = 7270e5587acc8408da83a8b75029a0c028526f66a793a207eb24357ed790dba7 -SHA512 (libredwg-0.12.tar.xz) = 3994c2031b0c96f852e5eea3e422e4156b35581e7144755ed1a84d226033684f7eea344732ac08d8aab6f1197f6f39278188ea08db9ebec7a52ddb09855b527c -Size (libredwg-0.12.tar.xz) = 9518568 bytes +BLAKE2s (libredwg-0.12.2.tar.xz) = 579256bda06c56faaceb781d62eae000f691c741d5e6b762009ae09311c26625 +SHA512 (libredwg-0.12.2.tar.xz) = 7ea60d2f65026603cfff6cb7e594df01d6dcc2d5636cef7ab14bde91067fe7d80f34c2c488a1edd012efd1202329cd25897873080e8ff17bcededae9a910f770 +Size (libredwg-0.12.2.tar.xz) = 9522988 bytes