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

account: use correct format %zu for printing outbound #2963

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

maximilianfridrich
Copy link
Contributor

@maximilianfridrich maximilianfridrich commented Mar 14, 2024

This caused a SIGABRT when an outbound proxy is set and account debug information is printed (because of the RE_VA_ARG usage in print.c).

@cspiel1
Copy link
Collaborator

cspiel1 commented Mar 14, 2024

Looks correct. Could find the reason for the SEGV in sanitizer workflow.

@@ -2005,7 +2005,7 @@ int account_debug(struct re_printf *pf, const struct account *acc)
acc->pinhole ? "yes" : "no");
for (i=0; i<RE_ARRAY_SIZE(acc->outboundv); i++) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
for (i=0; i<RE_ARRAY_SIZE(acc->outboundv); i++) {
for (size_t i=0; i<RE_ARRAY_SIZE(acc->outboundv); i++) {

@sreimers
Copy link
Member

Please rebase against main, this should fix:

FATAL: ThreadSanitizer: unexpected memory mapping 0x59f14d472000-0x59f14d4a3000

@alfredh alfredh merged commit e8b90f4 into baresip:main Mar 16, 2024
15 of 18 checks passed
@maximilianfridrich maximilianfridrich deleted the fix_account_debug_outbound branch March 18, 2024 11:35
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.

None yet

4 participants