Skip to content

[java] Model DatagramSocket for Pulse resource leaks - #2334

Merged
dulmarod merged 1 commit into
meta:mainfrom
tanvir-ux:fix/datagram-socket-resource-leak
Nov 27, 2026
Merged

dulmarod merged 1 commit into
meta:mainfrom
tanvir-ux:fix/datagram-socket-resource-leak

Conversation

@tanvir-ux

Copy link
Copy Markdown
Contributor

DatagramSocket constructors were not modeled, so Pulse never allocated the socket. send, receive, connect and bind were unknown and dropped the allocation, so a socket left open after those calls was not reported.

make -C infer/tests/codetoanalyze/java/pulse test

Please see CONTRIBUTING.md for how to set up your development environment and run tests.

DatagramSocket constructors were not modeled, so Pulse never allocated
the socket. send, receive, connect and bind were unknown and dropped
the allocation, so a socket left open after those calls was not reported.

make -C infer/tests/codetoanalyze/java/pulse test
@meta-cla meta-cla Bot added the CLA Signed label Nov 26, 2026
@dulmarod
dulmarod merged commit 28aa2b8 into meta:main Nov 27, 2026
8 checks passed
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Nov 27, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Nov 27, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Nov 27, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Nov 27, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Nov 29, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Nov 30, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Nov 30, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Nov 30, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Nov 30, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
VladimirMakaev added a commit to VladimirMakaev/infer that referenced this pull request Dec 1, 2026
java/pulse/issues.exp regenerated after conflicts between upstream meta#2334 (DatagramSocket models, 28aa2b8) and the frontier commits that also add to ResourceLeaks.java. Both method sets were kept, verified against the diff3 base. Committed separately so no pre-existing commit's patch-id moves.
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