Commit 6af9c22
authored
fix: Handle integer overflow (#1996)
#### Summary
<!-- 🎉 Thank you for making CloudQuery awesome by submitting a PR 🎉 -->
Fixes https://github.com/cloudquery/plugin-sdk/security/code-scanning/3
Fixes https://github.com/cloudquery/plugin-sdk/security/code-scanning/2
Fixes https://github.com/cloudquery/plugin-sdk/security/code-scanning/1
Technically a false positive since on 64 machines (we only compile to 64
bit) `int` and `int64` (`number` is `int64`) usually have the same size
so no overflow
---
Use the following steps to ensure your PR is ready to be reviewed
- [ ] Read the [contribution guidelines](../blob/main/CONTRIBUTING.md)
🧑🎓
- [ ] Run `go fmt` to format your code 🖊
- [ ] Lint your changes via `golangci-lint run` 🚨 (install golangci-lint
[here](https://golangci-lint.run/usage/install/#local-installation))
- [ ] Update or add tests 🧪
- [ ] Ensure the status checks below are successful ✅1 parent 32855ea commit 6af9c22
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
240 | 244 | | |
241 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
242 | 249 | | |
243 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
244 | 254 | | |
245 | 255 | | |
246 | 256 | | |
| |||
0 commit comments