aws / amazon-cloudwatch-agent

CloudWatch Agent enables you to collect and export host-level metrics and logs on instances running Linux or Windows server.
MIT License
420 stars 185 forks source link

Changing ParseInt to parsing unsigned int #1194

Closed mitali-salvi closed 1 month ago

mitali-salvi commented 1 month ago

Description of the issue

Values for the file offset may be parsed incorrectly causing errors in file reading and causing the agent to panic and fail.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Requirements

Before commit the code, please do the following steps.

  1. Run make fmt and make fmt-sh
  2. Run make lint