Skip to content

Commit

Permalink
fix : codeQL #227
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsharma committed Jan 30, 2024
1 parent 049905f commit f66e2c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions log/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ type Lazy struct {
type Ctx map[string]interface{}

func (c Ctx) toArray() []interface{} {
if len(c) > 64*1024*1024 {
return nil
}

arr := make([]interface{}, len(c)*2)

i := 0
Expand Down

0 comments on commit f66e2c2

Please sign in to comment.