This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/main by this push:
new 88aaab5be ORC-1943: Add `com.google.protobuf.use_unsafe_pre22_gencode`
to Surefire testing
88aaab5be is described below
commit 88aaab5be8f556af8ce10e5bc75ac2723ca29c33
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Jun 30 15:54:07 2025 -0700
ORC-1943: Add `com.google.protobuf.use_unsafe_pre22_gencode` to Surefire
testing
### What changes were proposed in this pull request?
This PR aims to add `com.google.protobuf.use_unsafe_pre22_gencode` to
Surefire testing.
### Why are the changes needed?
To suppress the following warnings during testing which occurs since
ORC-1934
- #2246
```
[INFO] Running org.apache.orc.impl.TestZlib
Jun 30, 2025 2:50:15 PM com.google.protobuf.GeneratedMessage
warnPre22Gencode
WARNING: Vulnerable protobuf generated type in use:
org.apache.orc.OrcProto$PostScript
As of 2022/09/29 (release 21.7) makeExtensionsImmutable should not be
called from protobuf gencode. If you are seeing this message, your gencode is
vulnerable to a denial of service attack. You should regenerate your code using
protobuf 25.6 or later. Use the latest version that meets your needs. However,
if you understand the risks and wish to continue with vulnerable gencode, you
can set the system property `-Dcom.google.protobuf.use_unsafe_pre22_gencode` on
the command line to sile [...]
```
### How was this patch tested?
Manual tests because this is a warning log message.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #2305 from dongjoon-hyun/ORC-1943.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
java/pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/java/pom.xml b/java/pom.xml
index b4cdee982..8e9b30f72 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -724,6 +724,7 @@
<test.tmp.dir>${test.tmp.dir}</test.tmp.dir>
<example.dir>${example.dir}</example.dir>
<org.slf4j.simpleLogger.log.org.apache.hadoop>error</org.slf4j.simpleLogger.log.org.apache.hadoop>
+
<com.google.protobuf.use_unsafe_pre22_gencode></com.google.protobuf.use_unsafe_pre22_gencode>
</systemPropertyVariables>
</configuration>
</plugin>