Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl, --trace-time, cache value for a second #11211

Closed
wants to merge 1 commit into from

Conversation

icing
Copy link
Contributor

@icing icing commented May 26, 2023

  • caches HH:MM:SS computed and reuses it for logging during the same second.
  • common function for plain log line start formatting

- caches HH:MM:SS computed and reuses it for logging during
  the same second.
- common function for plain log line start formatting
}
secs = epoch_offset + tv_sec;
/* !checksrc! disable BANNEDFUNC 1 */
now = localtime(&secs); /* not thread safe but we don't care */

Check failure

Code scanning / CodeQL

Use of potentially dangerous function

Call to 'localtime' is potentially dangerous.
@bagder
Copy link
Member

bagder commented May 28, 2023

Thanks!

@bagder bagder closed this in 64dedb4 May 28, 2023
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
- caches HH:MM:SS computed and reuses it for logging during
  the same second.
- common function for plain log line start formatting

Closes curl#11211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants