[#6132] replaced strconv.Itoa with strconv.FormatInt where it could overflow

This commit is contained in:
Gani Georgiev
2024-12-17 21:41:55 +02:00
parent 9b4200a65c
commit ef0170cf0b
39 changed files with 61 additions and 56 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func GenerateDefaultRandomId() string {
// crc32Checksum generates a stringified crc32 checksum from the provided plain string.
func crc32Checksum(str string) string {
return strconv.Itoa(int(crc32.ChecksumIEEE([]byte(str))))
return strconv.FormatInt(int64(crc32.ChecksumIEEE([]byte(str))), 10)
}
// ModelQuery creates a new preconfigured select app.DB() query with preset