Skip to content

Commit

Permalink
lxc/list: protect against int overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
simondeziel committed Feb 21, 2025
1 parent 2fbba72 commit 1c92007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxc/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ func (c *cmdList) parseColumns(clustered bool) ([]column, bool, error) {

maxWidth := -1
if len(cc) > 2 {
temp, err := strconv.ParseInt(cc[2], 10, 64)
temp, err := strconv.ParseInt(cc[2], 10, 32)
if err != nil {
return nil, false, fmt.Errorf(i18n.G("Invalid max width (must be an integer) '%s' in '%s'"), cc[2], columnEntry)
}
Expand Down

0 comments on commit 1c92007

Please sign in to comment.