mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Fix formatting in tor_assertf() message in struct_check_magic().
Closes 32771; bugfix on 0.4.2.1-alpha.
This commit is contained in:
parent
df5c81fec0
commit
b4977d1aa9
2 changed files with 6 additions and 2 deletions
4
changes/bug32771
Normal file
4
changes/bug32771
Normal file
|
@ -0,0 +1,4 @@
|
|||
o Minor bugfixes (logging, crash):
|
||||
- Avoid a possible crash when trying to log a (fatal) assertion failure
|
||||
about mismatched magic numbers in configuration objects. Fixes bug 32771;
|
||||
bugfix on 0.4.2.1-alpha.
|
|
@ -53,8 +53,8 @@ struct_check_magic(const void *object, const struct_magic_decl_t *decl)
|
|||
const uint32_t *ptr = STRUCT_VAR_P(object, decl->magic_offset);
|
||||
tor_assertf(*ptr == decl->magic_val,
|
||||
"Bad magic number on purported %s object. "
|
||||
"Expected %"PRIu32"x but got "PRIu32"x.",
|
||||
decl->magic_val, *ptr);
|
||||
"Expected %"PRIu32"x but got %"PRIu32"x.",
|
||||
decl->typename, decl->magic_val, *ptr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue