Commit ad31c4f
committed
vcsim: fix integer type conversion
replace the use of strconv.Atoi with strconv.ParseInt, specifying the bit size as 32. This ensures that the parsed value is within the range of int32.
Ref: GHSA https://github.com/vmware/govmomi/security/code-scanning/20
Signed-off-by: Ryan Johnson <[email protected]>1 parent 4170c79 commit ad31c4f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
0 commit comments