Hello community,

here is the log from the commit of package perl-Compress-Raw-Lzma for 
openSUSE:Factory checked in at 2019-12-03 12:43:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Compress-Raw-Lzma (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Compress-Raw-Lzma.new.4691 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Compress-Raw-Lzma"

Tue Dec  3 12:43:04 2019 rev:9 rq:753105 version:2.092

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Compress-Raw-Lzma/perl-Compress-Raw-Lzma.changes
    2019-11-26 17:02:01.724054988 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Compress-Raw-Lzma.new.4691/perl-Compress-Raw-Lzma.changes
  2019-12-03 12:43:31.710113696 +0100
@@ -1,0 +2,12 @@
+Mon Dec  2 03:07:29 UTC 2019 -  <timueller+p...@suse.de>
+
+- updated to 2.092
+   see /usr/share/doc/packages/perl-Compress-Raw-Lzma/Changes
+
+    2.092 1 December 2019
+  
+        * use lzma_llocator
+          Issue https://github.com/pmqs/Compress-Raw-Lzma/issues/2
+          2cf13f99ef6ce862b138f83f6d3d9597d59106b9
+
+-------------------------------------------------------------------

Old:
----
  Compress-Raw-Lzma-2.091.tar.gz

New:
----
  Compress-Raw-Lzma-2.092.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Compress-Raw-Lzma.spec ++++++
--- /var/tmp/diff_new_pack.LWmEmX/_old  2019-12-03 12:43:32.366113514 +0100
+++ /var/tmp/diff_new_pack.LWmEmX/_new  2019-12-03 12:43:32.370113513 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Compress-Raw-Lzma
-Version:        2.091
+Version:        2.092
 Release:        0
 %define cpan_name Compress-Raw-Lzma
 Summary:        Low-Level Interface to lzma compression library
@@ -53,7 +53,7 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
-find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" ! -path "*/bin/*" 
! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
+find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path 
"*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"

++++++ Compress-Raw-Lzma-2.091.tar.gz -> Compress-Raw-Lzma-2.092.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Compress-Raw-Lzma-2.091/Changes 
new/Compress-Raw-Lzma-2.092/Changes
--- old/Compress-Raw-Lzma-2.091/Changes 2019-11-23 17:43:46.000000000 +0100
+++ new/Compress-Raw-Lzma-2.092/Changes 2019-12-01 21:19:38.000000000 +0100
@@ -1,6 +1,12 @@
 CHANGES
 -------
 
+  2.092 1 December 2019
+
+      * use lzma_llocator
+        Issue https://github.com/pmqs/Compress-Raw-Lzma/issues/2
+        2cf13f99ef6ce862b138f83f6d3d9597d59106b9
+
   2.091 23 November 2019
 
       * More updates for memory leak in raw_decoder
@@ -23,7 +29,7 @@
   2.089 3 November 2019
 
       * No Changes
-  
+
   2.088 31 October 2019
 
       * Add SUPPPORT section
@@ -40,7 +46,7 @@
   2.085 12 January 2019
 
       * t/050interop-xz.t
-      Test harness can use a lot of memory. 
+      Test harness can use a lot of memory.
       On systems with small memory t/050interop-xz.t can fail.
       Free memory before invoking xz.
       [rt.cpan.org #128194]  may fail (memory leak?)
@@ -115,10 +121,10 @@
 
       * fix typos
         [RT #86418]
-        
+
   2.061 19 May 2013
 
-      * silence compiler warning by making 2nd parameter to 
+      * silence compiler warning by making 2nd parameter to
         DispStream a const char*
 
   2.060 7 January 2013
@@ -192,7 +198,7 @@
       * A number of changes to facilitate adding LZMA support to
         IO::Compress::Zip & IO::Uncompress::Unzip
 
-          * Added preset filters Lzma::Filter::Lzma1::Preset & 
+          * Added preset filters Lzma::Filter::Lzma1::Preset &
             Lzma::Filter::Lzma2::Preset
 
           * Added forZip option to Compress::Raw::Lzma::Encoder
@@ -229,7 +235,7 @@
 
   2.028 3 May 2010
 
-      * Remove 'Persistent' option from  Lzma::Filter::Lzma. 
+      * Remove 'Persistent' option from  Lzma::Filter::Lzma.
         The underlying lzma library doesn't support it anymore.
         [RT #57080]
 
@@ -256,7 +262,7 @@
 
       * Fixed a problem with the code that generated the LZMA constants.
         This issue was found in with the version of the lzma library that
-        comes with Ubuntu 9.10 
+        comes with Ubuntu 9.10
         Pronlem reported by Graham Jenkins
 
   2.023 9 November 2009
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Compress-Raw-Lzma-2.091/Lzma.xs 
new/Compress-Raw-Lzma-2.092/Lzma.xs
--- old/Compress-Raw-Lzma-2.091/Lzma.xs 2019-11-21 21:05:53.000000000 +0100
+++ new/Compress-Raw-Lzma-2.092/Lzma.xs 2019-12-01 21:13:12.000000000 +0100
@@ -52,7 +52,7 @@
 
     //bool     is_tainted;
     bool        forZip;
-    bool        extraFree ;
+    void*       extraAddress ;
     lzma_stream stream ; 
 
     lzma_filter filters[LZMA_FILTERS_MAX + 1];
@@ -285,6 +285,20 @@
 }
 #endif
 
+void* my_alloc (void* opaque, size_t items, size_t size)
+{
+    PERL_UNUSED_VAR(opaque);
+    return safemalloc(items * size);
+}
+
+void my_free (void* opaque, void* ptr)
+{
+    PERL_UNUSED_VAR(opaque);
+    safefree(ptr);
+
+    return; 
+}
+
 static di_stream *
 #ifdef CAN_PROTOTYPE
 InitStream(void)
@@ -294,12 +308,17 @@
 {
     dTHX;
     di_stream *s ;
+    lzma_allocator * allocator;
 
     ZMALLOC(s, di_stream) ;
 
     /* lzma_memory_usage(lzma_preset_lzma, TRUE); */
 
-    s->extraFree = FALSE;
+    ZMALLOC(allocator, lzma_allocator) ;
+    allocator->alloc = my_alloc;
+    allocator->free = my_free;
+    s->stream.allocator = allocator;
+
     return s ;
     
 }
@@ -326,14 +345,15 @@
     int i = 0;
 
     if (properties) {
-        s->extraFree = TRUE;
-        s->filters[i].id = LZMA_FILTER_LZMA1;
+        s->filters[0].id = LZMA_FILTER_LZMA1;
 
-        if (lzma_properties_decode(&s->filters[i], NULL, 
+        if (lzma_properties_decode(&s->filters[0], NULL, 
                 (const uint8_t*)properties, 5) != LZMA_OK)
             return FALSE;
-        ++i;
 
+        s->extraAddress = (void*)s->filters[0].options; 
+
+        ++i;
     }
     else {
         AV*   f = filters;
@@ -366,8 +386,11 @@
     {
         int i;
 
-        if (s->extraFree)
-            free(s->filters[0].options) ;
+        if (s->extraAddress)
+            Safefree(s->extraAddress) ;
+
+           if (s->stream.allocator)
+           Safefree(s->stream.allocator);
 
         for (i = 0; i < LZMA_FILTERS_MAX; ++i)
         {
@@ -718,7 +741,6 @@
   {
     lzma_ret err = LZMA_OK;
     deflateStream s = NULL;
-
     if ((s = InitStream() )) {
         setupFilters(s, filters, NULL);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Compress-Raw-Lzma-2.091/META.json 
new/Compress-Raw-Lzma-2.092/META.json
--- old/Compress-Raw-Lzma-2.091/META.json       2019-11-23 18:23:51.000000000 
+0100
+++ new/Compress-Raw-Lzma-2.092/META.json       2019-12-01 21:20:29.000000000 
+0100
@@ -45,6 +45,6 @@
          "web" : "https://github.com/pmqs/Compress-Raw-Lzma";
       }
    },
-   "version" : "2.091",
+   "version" : "2.092",
    "x_serialization_backend" : "JSON::PP version 2.27300"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Compress-Raw-Lzma-2.091/META.yml 
new/Compress-Raw-Lzma-2.092/META.yml
--- old/Compress-Raw-Lzma-2.091/META.yml        2019-11-23 18:23:51.000000000 
+0100
+++ new/Compress-Raw-Lzma-2.092/META.yml        2019-12-01 21:20:29.000000000 
+0100
@@ -23,5 +23,5 @@
   bugtracker: https://github.com/pmqs/Compress-Raw-Lzma/issues
   homepage: https://github.com/pmqs/Compress-Raw-Lzma
   repository: git://github.com/pmqs/Compress-Raw-Lzma.git
-version: '2.091'
+version: '2.092'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Compress-Raw-Lzma-2.091/README 
new/Compress-Raw-Lzma-2.092/README
--- old/Compress-Raw-Lzma-2.091/README  2019-11-23 17:22:14.000000000 +0100
+++ new/Compress-Raw-Lzma-2.092/README  2019-12-01 21:18:58.000000000 +0100
@@ -1,9 +1,9 @@
 
                             Compress-Raw-Lzma
 
-                             Version 2.091
+                              Version 2.092
 
-                            23 November 2019
+                             1 December 2019
 
        Copyright (c) 2009-2019 Paul Marquess. All rights reserved.
           This program is free software; you can redistribute it
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Compress-Raw-Lzma-2.091/lib/Compress/Raw/Lzma.pm 
new/Compress-Raw-Lzma-2.092/lib/Compress/Raw/Lzma.pm
--- old/Compress-Raw-Lzma-2.091/lib/Compress/Raw/Lzma.pm        2019-11-23 
17:10:46.000000000 +0100
+++ new/Compress-Raw-Lzma-2.092/lib/Compress/Raw/Lzma.pm        2019-12-01 
21:19:16.000000000 +0100
@@ -12,7 +12,7 @@
 use bytes ;
 our ($VERSION, $XS_VERSION, @ISA, @EXPORT, $AUTOLOAD);
 
-$VERSION = '2.091';
+$VERSION = '2.092';
 $XS_VERSION = $VERSION; 
 $VERSION = eval $VERSION;
 


Reply via email to