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

Fix bug when writing empty string to log #3998

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

bennylp
Copy link
Member

@bennylp bennylp commented Jun 24, 2024

Writing empty string to log, i.e. PJ_LOG(3,(THIS_FILE, "%s", "")) will cause log writer (pj_log_write()) to be called with maximum buffer length.

Also added log_test() in pjlib-test to test this and other scenarios.

@bennylp bennylp added this to the release-2.15 milestone Jun 24, 2024
@bennylp bennylp self-assigned this Jun 24, 2024
@bennylp bennylp merged commit 8293af9 into master Jun 24, 2024
36 checks passed
@bennylp bennylp deleted the log-write-empty-string-bug branch June 24, 2024 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants