slachiewicz opened a new issue, #3625:
URL: https://github.com/apache/maven-surefire/issues/3625

   Affected version: master at d7c7e359e.
   
   `LineConsumerThread.run` 
(surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/LineConsumerThread.java:61-75)
 reads raw fork stderr with `Scanner.hasNextLine()/nextLine()` and no per-line 
length limit. `ForkStarter.bindErrorStream` 
(maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java:746)
 wires the fork's stderr channel into this consumer in the plugin JVM. A single 
newline-free stream of arbitrary length therefore grows the Scanner buffer 
until the plugin JVM is out of memory.
   
   This is distinct from the existing hang report in #3341: here the concern is 
the missing line-length bound at the byte-to-String choke point.
   
   Expected behavior: cap the number of characters buffered per line before 
dispatching to the `EventHandler`, and truncate or reject overlong lines with a 
diagnostic. A bounded fixture can feed one long newline-free line under a small 
`-Xmx` and assert that the plugin JVM stays alive.
   


-- 
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]

Reply via email to