We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c23528 commit 40e86d1Copy full SHA for 40e86d1
1 file changed
internal/commands/column.go
@@ -45,7 +45,11 @@ var columnListCmd = &cobra.Command{
45
return nil
46
}
47
48
- cols := make([]any, 0, 3+len(dataSlice)) //nolint:gosec // len returns non-negative int; +3 cannot overflow
+ n := len(dataSlice)
49
+ if n > (1<<31 - 4) {
50
+ n = 0
51
+ }
52
+ cols := make([]any, 0, 3+n)
53
cols = append(cols, pseudoColumnObject(pseudoColumnNotNow), pseudoColumnObject(pseudoColumnMaybe))
54
cols = append(cols, dataSlice...)
55
cols = append(cols, pseudoColumnObject(pseudoColumnDone))
0 commit comments