pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/converters/p5-Sereal-Decoder p5-Sereal-Decoder: update...
details: https://anonhg.NetBSD.org/pkgsrc/rev/65bf04e8a5a0
branches: trunk
changeset: 368459:65bf04e8a5a0
user: wiz <wiz%pkgsrc.org@localhost>
date: Sun Sep 17 08:17:38 2017 +0000
description:
p5-Sereal-Decoder: update to 3.015.
3.015 Thu Sep 1 20:18:44 CEST 2016
* Fix builds under 5.25+
* Fix various buffer overun bugs found using AFL (thanks to dgryski)
* Fix issue in decode_from_file()
diffstat:
converters/p5-Sereal-Decoder/Makefile | 5 +-
converters/p5-Sereal-Decoder/distinfo | 12 +-
converters/p5-Sereal-Decoder/patches/patch-Decoder.xs | 67 ----------
converters/p5-Sereal-Decoder/patches/patch-snappy_csnappy__internal__userspace.h | 30 ----
4 files changed, 7 insertions(+), 107 deletions(-)
diffs (136 lines):
diff -r 76c30234d65c -r 65bf04e8a5a0 converters/p5-Sereal-Decoder/Makefile
--- a/converters/p5-Sereal-Decoder/Makefile Sun Sep 17 08:14:24 2017 +0000
+++ b/converters/p5-Sereal-Decoder/Makefile Sun Sep 17 08:17:38 2017 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2017/06/05 14:22:22 ryoon Exp $
+# $NetBSD: Makefile,v 1.11 2017/09/17 08:17:38 wiz Exp $
-DISTNAME= Sereal-Decoder-3.014
+DISTNAME= Sereal-Decoder-3.015
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 3
CATEGORIES= security perl5 converters
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../CPAN/authors/id/Y/YV/YVES/}
diff -r 76c30234d65c -r 65bf04e8a5a0 converters/p5-Sereal-Decoder/distinfo
--- a/converters/p5-Sereal-Decoder/distinfo Sun Sep 17 08:14:24 2017 +0000
+++ b/converters/p5-Sereal-Decoder/distinfo Sun Sep 17 08:17:38 2017 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.9 2017/06/07 23:53:58 ryoon Exp $
+$NetBSD: distinfo,v 1.10 2017/09/17 08:17:38 wiz Exp $
-SHA1 (Sereal-Decoder-3.014.tar.gz) = 79962f925b2f7dc3920c913d0b033da860a84012
-RMD160 (Sereal-Decoder-3.014.tar.gz) = bc15b504e216305349fd5192f337202d93e21480
-SHA512 (Sereal-Decoder-3.014.tar.gz) = 00ac49d18033fa177fa12d36b0527f327eaed54c96a065783da6c209db24764b4487464312a933ac24d51d94ef79293c0cb1aa938f6e4704a3b0a11b30151e22
-Size (Sereal-Decoder-3.014.tar.gz) = 369546 bytes
-SHA1 (patch-Decoder.xs) = 674acfb7dc39cef46c53b43452670c2cb2250756
-SHA1 (patch-snappy_csnappy__internal__userspace.h) = 604f36231909881d4c424c06cd0b6065b4912006
+SHA1 (Sereal-Decoder-3.015.tar.gz) = f642142dea1195e8031000d6a53b57a8865f341c
+RMD160 (Sereal-Decoder-3.015.tar.gz) = ac76f29d1b7bb999dd6ce6b4109a738f8c800adb
+SHA512 (Sereal-Decoder-3.015.tar.gz) = 65582a86ff40d02e350bfe759cfda12c3a541c012c55c2a9bfee6cc6df5facbe8088188cb7306685d4b9ab549e8900a7bd599b207325fec7d30d90de3b68c79e
+Size (Sereal-Decoder-3.015.tar.gz) = 373762 bytes
diff -r 76c30234d65c -r 65bf04e8a5a0 converters/p5-Sereal-Decoder/patches/patch-Decoder.xs
--- a/converters/p5-Sereal-Decoder/patches/patch-Decoder.xs Sun Sep 17 08:14:24 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-$NetBSD: patch-Decoder.xs,v 1.2 2017/06/07 23:53:58 ryoon Exp $
-
-* Fix build with Perl 5.26.0
- Like devel/p5-Params-Classify/patches/patch-lib_Params_Classify.xs
-
---- Decoder.xs.orig 2015-11-27 00:15:01.000000000 +0000
-+++ Decoder.xs
-@@ -19,6 +19,26 @@
- #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
- #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
-
-+#ifndef OpHAS_SIBLING
-+# define OpHAS_SIBLING(o) (cBOOL((o)->op_sibling))
-+#endif
-+
-+#ifndef OpSIBLING
-+# define OpSIBLING(o) (0 + (o)->op_sibling)
-+#endif
-+
-+#ifndef OpMORESIB_set
-+# define OpMORESIB_set(o, sib) ((o)->op_sibling = (sib))
-+#endif
-+
-+#ifndef OpLASTSIB_set
-+# define OpLASTSIB_set(o, parent) ((o)->op_sibling = NULL)
-+#endif
-+
-+#ifndef OpMAYBESIB_set
-+# define OpMAYBESIB_set(o, sib, parent) ((o)->op_sibling = (sib))
-+#endif
-+
- /* prototype to pass -Wmissing-prototypes */
- STATIC void
- S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
-@@ -193,17 +213,17 @@ THX_ck_entersub_args_sereal_decoder(pTHX
-
- entersubop = ck_entersub_args_proto(entersubop, namegv, (SV*)cv);
- pushop = cUNOPx(entersubop)->op_first;
-- if ( ! pushop->op_sibling )
-+ if ( ! OpHAS_SIBLING(pushop) )
- pushop = cUNOPx(pushop)->op_first;
-- firstargop = pushop->op_sibling;
-+ firstargop = OpSIBLING(pushop);
-
-- for (cvop = firstargop; cvop->op_sibling; cvop = cvop->op_sibling) ;
-+ for (cvop = firstargop; OpHAS_SIBLING(cvop); cvop = OpSIBLING(cvop)) ;
-
- lastargop = pushop;
- for (
- arity = 0, lastargop = pushop, argop = firstargop;
- argop != cvop;
-- lastargop = argop, argop = argop->op_sibling
-+ lastargop = argop, argop = OpSIBLING(argop)
- ){
- arity++;
- }
-@@ -222,8 +242,8 @@ THX_ck_entersub_args_sereal_decoder(pTHX
- if (arity > min_arity)
- opopt |= OPOPT_OUTARG_HEADER;
-
-- pushop->op_sibling = cvop;
-- lastargop->op_sibling = NULL;
-+ OpMORESIB_set(pushop, cvop);
-+ OpLASTSIB_set(lastargop, NULL);
- op_free(entersubop);
- newop = newUNOP(OP_NULL, 0, firstargop);
- newop->op_type = OP_CUSTOM;
diff -r 76c30234d65c -r 65bf04e8a5a0 converters/p5-Sereal-Decoder/patches/patch-snappy_csnappy__internal__userspace.h
--- a/converters/p5-Sereal-Decoder/patches/patch-snappy_csnappy__internal__userspace.h Sun Sep 17 08:14:24 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-$NetBSD: patch-snappy_csnappy__internal__userspace.h,v 1.1 2016/12/11 20:30:35 wiedi Exp $
-
-reorder so that __sun matches before __GNUC__
-
---- snappy/csnappy_internal_userspace.h.orig 2015-11-24 17:55:03.000000000 +0000
-+++ snappy/csnappy_internal_userspace.h
-@@ -154,11 +154,6 @@ Albert Lee
- #define __LITTLE_ENDIAN LITTLE_ENDIAN
- #define __BIG_ENDIAN BIG_ENDIAN
-
--#elif defined(__GNUC__) || defined(__ANDROID__) || defined(__CYGWIN__)
--
--#include <endian.h>
--#include <byteswap.h>
--
- #elif defined(__sun)
-
- #include <sys/byteorder.h>
-@@ -173,6 +168,11 @@ Albert Lee
- #define __BYTE_ORDER __BIG_ENDIAN
- #endif
-
-+#elif defined(__GNUC__) || defined(__ANDROID__) || defined(__CYGWIN__)
-+
-+#include <endian.h>
-+#include <byteswap.h>
-+
- #elif defined(__hpux)
-
- #ifdef __LP64__
Home |
Main Index |
Thread Index |
Old Index