Skip to content

[core/zip+lzma] Properly account for header size [v6.26]#14626

Merged
hahnjo merged 4 commits intoroot-project:v6-26-00-patchesfrom
hahnjo:core-zip-v626
Feb 8, 2024
Merged

[core/zip+lzma] Properly account for header size [v6.26]#14626
hahnjo merged 4 commits intoroot-project:v6-26-00-patchesfrom
hahnjo:core-zip-v626

Conversation

@hahnjo
Copy link
Copy Markdown
Member

@hahnjo hahnjo commented Feb 8, 2024

The compression algorithms only see the buffers without the header, so the sizes have to be adjusted accordingly.

Fixes #14508, backport of #14523

R__unzipZLIB is already properly subtracting it from srcsize.

(cherry picked from commit 44d1c23)
lzma_code must only see the buffers without the header, so the sizes
have to be adjusted accordingly.

Fixes root-project#14508

(cherry picked from commit 17e3561)
In practice, the target size is greater or equal the source size in most
cases for ROOT, but add this additional correct check to fuzz the inputs
in the next commit.

(cherry picked from commit 23261a6)
This would have found any of the previous three commits.

(cherry picked from commit 73d8c3d)
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-ubuntu2204/nortcxxmod.
Running on root-ubuntu-2204-2.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2024-02-08T08:33:13.845Z] /home/sftnight/build/workspace/root-pullrequests-build/root/net/http/civetweb/civetweb.c:12086:9: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  • [2024-02-08T08:33:13.845Z] /home/sftnight/build/workspace/root-pullrequests-build/root/net/http/civetweb/civetweb.c:12087:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  • [2024-02-08T08:33:13.845Z] /home/sftnight/build/workspace/root-pullrequests-build/root/net/http/civetweb/civetweb.c:12088:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

@phsft-bot
Copy link
Copy Markdown

@phsft-bot
Copy link
Copy Markdown

Build failed on mac12arm/cxx20.
Running on 194.12.161.128:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2024-02-08T09:31:37.799Z] FAILED: core/G__Core.cxx lib/Core.pcm /Users/sftnight/build/workspace/root-pullrequests-build/build/core/G__Core.cxx /Users/sftnight/build/workspace/root-pullrequests-build/build/lib/Core.pcm
  • [2024-02-08T09:31:38.510Z] /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__compare/is_eq.h:23:51: error: unknown type name 'partial_ordering'
  • [2024-02-08T09:31:38.510Z] /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__compare/is_eq.h:24:52: error: unknown type name 'partial_ordering'
  • [2024-02-08T09:31:38.510Z] /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__compare/is_eq.h:25:51: error: unknown type name 'partial_ordering'
  • [2024-02-08T09:31:38.510Z] /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__compare/is_eq.h:26:53: error: unknown type name 'partial_ordering'
  • [2024-02-08T09:31:38.510Z] /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__compare/is_eq.h:27:51: error: unknown type name 'partial_ordering'
  • [2024-02-08T09:31:38.510Z] /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__compare/is_eq.h:28:53: error: unknown type name 'partial_ordering'
  • [2024-02-08T09:31:38.510Z] /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:220:5: error: destructor cannot be marked constexpr
  • [2024-02-08T09:31:38.510Z] input_line_1:1:10: fatal error: could not build module 'std'
  • [2024-02-08T09:31:38.510Z] /Users/sftnight/build/workspace/root-pullrequests-build/build/etc/cling/Interpreter/DynamicExprInfo.h:13:10: fatal error: could not build module 'std'

And 5 more

Warnings:

  • [2024-02-08T09:26:54.389Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/interpreter/cling/include/cling/MetaProcessor/MetaLexer.h:60:5: warning: definition of implicit copy assignment operator for 'Token' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
  • [2024-02-08T09:26:55.921Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/interpreter/cling/include/cling/MetaProcessor/MetaLexer.h:60:5: warning: definition of implicit copy assignment operator for 'Token' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
  • [2024-02-08T09:28:08.214Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/interpreter/cling/lib/Interpreter/Exception.cpp:35:28: warning: unused variable 'E' [-Wunused-variable]
  • [2024-02-08T09:28:16.251Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/interpreter/cling/lib/Interpreter/Transaction.cpp:173:23: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'cling::Transaction::DelayCallInfo' and 'cling::Transaction::DelayCallInfo') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
  • [2024-02-08T09:28:16.251Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/interpreter/cling/lib/Interpreter/Transaction.cpp:218:21: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'cling::Transaction::MacroDirectiveInfo' and 'cling::Transaction::MacroDirectiveInfo') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
  • [2024-02-08T09:30:56.131Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/core/base/inc/TStorage.h:133:12: warning: compound assignment to object of volatile-qualified type 'volatile UInt_t' (aka 'volatile unsigned int') is deprecated [-Wdeprecated-volatile]
  • [2024-02-08T09:30:56.131Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/core/base/inc/TStorage.h:135:12: warning: compound assignment to object of volatile-qualified type 'volatile UInt_t' (aka 'volatile unsigned int') is deprecated [-Wdeprecated-volatile]
  • [2024-02-08T09:30:58.908Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/core/clib/src/mmemalign.c:37:13: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2024-02-08T09:30:59.230Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/core/clib/src/mmalloc.c:51:9: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2024-02-08T09:30:59.230Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/core/clib/src/mmalloc.c:200:13: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]

And 303 more

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-ubuntu2004/python3.
Running on root-ubuntu-2004-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@hahnjo
Copy link
Copy Markdown
Member Author

hahnjo commented Feb 8, 2024

The numpy failures are because of np.bool and np.object (missing backports), roottest_root_treeformula_schemaEvolution_make very likely fails because of e48ba04 but not having the proper commit backported to roottest, and mac12arm is unhappy about newer libc++ headers that were updated in the meanwhile...

@hahnjo hahnjo merged commit fed44af into root-project:v6-26-00-patches Feb 8, 2024
@hahnjo hahnjo deleted the core-zip-v626 branch February 8, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants