Skip to content

Commit

Permalink
Check pid bounds when read from pidfile
Browse files Browse the repository at this point in the history
  • Loading branch information
secwall committed Apr 5, 2024
1 parent 53ded4b commit 1268674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mysql/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func (n *Node) GetDaemonStartTime() (time.Time, error) {
}
return time.Time{}, err
}
pid, err := strconv.Atoi(strings.TrimSpace(string(pidB)))
pid, err := strconv.ParseInt(strings.TrimSpace(string(pidB)), 10, 32)
if err != nil {
return time.Time{}, err
}
Expand Down

0 comments on commit 1268674

Please sign in to comment.