mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-12 17:27:27 +02:00
[#6132] replaced strconv.Itoa with strconv.FormatInt where it could overflow
This commit is contained in:
1 parent
9b4200a65c
commit
ef0170cf0b
39 files changed
+61
-56
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user