chaokunyang opened a new pull request, #3472:
URL: https://github.com/apache/fory/pull/3472

   ## What does this PR do?\n- Adds a no-progress guard to  so 
invalid/truncated deflate streams fail fast instead of spinning forever.\n- 
Introduces  (subclass of ) and raises it for malformed/truncated 
meta-compression input.\n- Adds  coverage for roundtrip + truncated/corrupt 
payload failures (with timeout guard).\n- Registers  in  .\n\n## Why is this 
needed?\nIssue #3471 reports an infinite loop ( while ) that can peg CPU at 
100% for corrupt or truncated streams.\n\n## Verification\n- [INFO] 
Scanning for projects...
   [INFO] 
   [INFO] Using the MultiThreadedBuilder implementation with a thread 
count of 16
   [INFO] 
   [INFO] ---------------------< 
org.apache.fory:fory-core >----------------------
   [INFO] Building fory-core 0.16.0-SNAPSHOT
   [INFO] --------------------------------[ jar 
]---------------------------------
   Downloading from apache.snapshots: 
https://repository.apache.org/snapshots/org/apache/fory/fory-test-core/0.16.0-SNAPSHOT/maven-metadata.xml
   [WARNING] Could not transfer metadata 
org.apache.fory:fory-test-core:0.16.0-SNAPSHOT/maven-metadata.xml from/to 
apache.snapshots (https://repository.apache.org/snapshots): Transfer failed for 
https://repository.apache.org/snapshots/org/apache/fory/fory-test-core/0.16.0-SNAPSHOT/maven-metadata.xml
   [WARNING] Failure to transfer 
org.apache.fory:fory-test-core:0.16.0-SNAPSHOT/maven-metadata.xml from 
https://repository.apache.org/snapshots was cached in the local repository, 
resolution will not be reattempted until the update interval of 
apache.snapshots has elapsed or updates are forced. Original error: Could not 
transfer metadata 
org.apache.fory:fory-test-core:0.16.0-SNAPSHOT/maven-metadata.xml from/to 
apache.snapshots (https://repository.apache.org/snapshots): Transfer failed for 
https://repository.apache.org/snapshots/org/apache/fory/fory-test-core/0.16.0-SNAPSHOT/maven-metadata.xml
   [INFO] 
   [INFO] --- maven-enforcer-plugin:3.1.0:enforce 
(enforce-maven-version) @ fory-core ---
   [INFO] 
   [INFO] --- maven-enforcer-plugin:3.1.0:enforce 
(enforce-java-version) @ fory-core ---
   [INFO] 
   [INFO] --- 
maven-remote-resources-plugin:1.7.0:process 
(process-resource-bundles) @ fory-core ---
   [INFO] Preparing remote bundle 
org.apache:apache-jar-resource-bundle:1.4
   [INFO] Copying 3 resources from 1 bundle.
   [INFO] 
   [INFO] --- maven-resources-plugin:3.3.0:resources 
(default-resources) @ fory-core ---
   [INFO] Copying 5 resources
   [INFO] Copying 3 resources
   [INFO] 
   [INFO] --- maven-compiler-plugin:3.14.0:compile 
(default-compile) @ fory-core ---
   [INFO] Nothing to compile - all classes are up to date.
   [INFO] 
   [INFO] --- 
maven-resources-plugin:3.3.0:testResources 
(default-testResources) @ fory-core ---
   [INFO] skip non existing resourceDirectory 
/Users/chaokunyang/Desktop/dev/fory/java/fory-core/src/test/resources
   [INFO] Copying 3 resources
   [INFO] 
   [INFO] --- maven-compiler-plugin:3.14.0:testCompile 
(default-testCompile) @ fory-core ---
   [INFO] Nothing to compile - all classes are up to date.
   [INFO] 
   [INFO] --- maven-surefire-plugin:3.5.4:test 
(default-test) @ fory-core ---
   [INFO] Using auto detected provider 
org.apache.maven.surefire.testng.TestNGProvider
   [INFO] 
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running 
org.apache.fory.meta.DeflaterMetaCompressorTest
   [INFO] Tests run: 3, Failures: 0, Errors: 0, 
Skipped: 0, Time elapsed: 0.121 s -- in 
org.apache.fory.meta.DeflaterMetaCompressorTest
   [INFO] 
   [INFO] Results:
   [INFO] 
   [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
   [INFO] 
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD SUCCESS
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  6.257 s (Wall Clock)
   [INFO] Finished at: 2026-03-12T15:46:08+08:00
   [INFO] 
------------------------------------------------------------------------\n\nCloses
 #3471


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to