diff options
Diffstat (limited to 'weed/admin/handlers/cluster_handlers.go')
| -rw-r--r-- | weed/admin/handlers/cluster_handlers.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/admin/handlers/cluster_handlers.go b/weed/admin/handlers/cluster_handlers.go index ee6417954..1a58e919d 100644 --- a/weed/admin/handlers/cluster_handlers.go +++ b/weed/admin/handlers/cluster_handlers.go @@ -1,6 +1,7 @@ package handlers import ( + "math" "net/http" "strconv" @@ -256,7 +257,7 @@ func (h *ClusterHandlers) ShowEcVolumeDetails(c *gin.Context) { } // Check that volumeID is within uint32 range - if volumeID < 0 { + if volumeID < 0 || uint64(volumeID) > math.MaxUint32 { c.JSON(http.StatusBadRequest, gin.H{"error": "Volume ID out of range"}) return } |
