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

log: Avoid buffer overflow #628

Merged
merged 1 commit into from
Mar 21, 2024
Merged

log: Avoid buffer overflow #628

merged 1 commit into from
Mar 21, 2024

Conversation

Jakuje
Copy link
Contributor

@Jakuje Jakuje commented Mar 12, 2024

There was attempt to fix this in bb3a3cb, but it fixed only the case when this value was actually provided by the token. When the token does not support clock, it would print behind the "" buffer, causing random constant string to be printed instead of the actual value, for example

utcTime: ../common/attrs

This simplifies the long line for readability and prints additional information about this value being unsupported by the token.

There was attempt to fix this in bb3a3cb, but it fixed only the case
when this value was actually provided by the token. When the token does
not support clock, it would print behind the "" buffer, causing random
constant string to be printed instead of the actual value, for example

	utcTime: ../common/attrs

This simplifies the long line for readability and prints additional
information about this value being unsupported by the token.

Signed-off-by: Jakub Jelen <[email protected]>
@coveralls
Copy link

Coverage Status

coverage: 69.526% (-0.02%) from 69.548%
when pulling fe6ca3e on Jakuje:utcTime
into ebfc19c on p11-glue:master.

Copy link
Member

@ueno ueno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@ueno ueno merged commit 1195177 into p11-glue:master Mar 21, 2024
14 checks passed
@ZoltanFridrich ZoltanFridrich added this to the 0.25.4 milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants