Commit Graph

2 Commits

Author SHA1 Message Date
Claude Bot
b0b94b1e7a Add integer validation for numeric uid/gid arguments
- Use Bun::V::validateInteger to reject non-integers (NaN, Infinity, floats, negatives)
- Match the validation pattern used in setuid/setgid functions
- Add comprehensive test coverage for numeric edge cases (1.5, -1, NaN, Infinity, 2^31)
- Validate both user and extraGroup parameters when numeric

Addresses CodeRabbit review feedback.
2025-10-21 06:33:54 +00:00
Claude Bot
15a8c723de Move test to correct location
Tests should be in test/js/node/process/ not in the node parallel test
directory unless copied from upstream Node.js tests.
2025-10-21 06:20:35 +00:00