pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

brlcad: Fix iges error



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Oct 23 17:17:52 2016 +0200
Changeset:	db327f9542791665e6ab4a7fa84f9d9efe4a2431

Modified Files:
	brlcad/distinfo
Added Files:
	brlcad/patches/patch-src_conv_iges_main.c

Log Message:
brlcad: Fix iges error

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=db327f9542791665e6ab4a7fa84f9d9efe4a2431

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 brlcad/distinfo                           |  1 +
 brlcad/patches/patch-src_conv_iges_main.c | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)

diffs:
diff --git a/brlcad/distinfo b/brlcad/distinfo
index 6bbd773..4989bfa 100644
--- a/brlcad/distinfo
+++ b/brlcad/distinfo
@@ -7,6 +7,7 @@ Size (brlcad-7.26.0.tar.bz2) = 113073230 bytes
 SHA1 (patch-CMakeLists.txt) = ec1955dc1543fd2b6ba5a56ebf350980ac42f7df
 SHA1 (patch-misc_CMake_CompilerFlags.cmake) = 0831bd3376e2838fbd4a08be2121db73fba3db56
 SHA1 (patch-misc_CMake_ThirdParty.cmake) = 03cb989aa4de0a07e146bc80facd649946a9688b
+SHA1 (patch-src_conv_iges_main.c) = 67d9315e43313e57efd3cfeb489f035cfa8f58f6
 SHA1 (patch-src_libbu_uce-dirent.h) = 82c0f1c67316b5ddcde50c69a0f746471eaf10c6
 SHA1 (patch-src_librt_primitives_bot_gct__decimation_meshdecimation.c) = c76104ad99c8714379ad7e01b806a2f30cda4f05
 SHA1 (patch-src_other_libutahrle_rle__open__f.c) = 0f63031af8f31b86eb6348fe011e928f161d3795
diff --git a/brlcad/patches/patch-src_conv_iges_main.c b/brlcad/patches/patch-src_conv_iges_main.c
new file mode 100644
index 0000000..fefdbbe
--- /dev/null
+++ b/brlcad/patches/patch-src_conv_iges_main.c
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Fix invalid memory read. ntypes is referenced via iges_extern.h as size_t and
+it results in corrupted reads.
+
+--- src/conv/iges/main.c.orig	2016-08-09 06:48:19.000000000 +0000
++++ src/conv/iges/main.c
+@@ -41,7 +41,8 @@ size_t totentities, dirarraylen;
+ FILE *fd;
+ struct rt_wdb *fdout;
+ char brlcad_file[256];
+-int reclen, currec, ntypes;
++int reclen, currec;
++size_t ntypes;
+ int brlcad_att_de = 0;
+ struct iges_directory **dir;
+ struct reglist *regroot;


Home | Main Index | Thread Index | Old Index