Details
-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b12
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8316247 | 17.0.10 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8305058 | 17.0.8-oracle | Ryan Wallace | P4 | Resolved | Fixed | b01 |
Description
The java/net/DatagramSocket/DatagramSocketMulticasting.java is vulnerable to receiving datagrams sent by other tests running concurrently on the machine. In particular the method `testSendReceive` should use a body text unique for the method invocation, and ignore any received datagram that do not contain the same body.
The test could also benefit from being refactored to using TestNG or Jupiter rather than using its own assertXxx methods (which would allow to use assertEquals rather than plain assertTrue
The test could also benefit from being refactored to using TestNG or Jupiter rather than using its own assertXxx methods (which would allow to use assertEquals rather than plain assertTrue
Attachments
Issue Links
- backported by
-
JDK-8305058 java/net/DatagramSocket/DatagramSocketMulticasting.java should be hardened
- Resolved
-
JDK-8316247 java/net/DatagramSocket/DatagramSocketMulticasting.java should be hardened
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/cc9a8e98
-
Commit openjdk/jdk/5feb13b5
-
Review openjdk/jdk17u-dev/1433
-
Review openjdk/jdk/12513
(1 links to)