Fixed NULL handling in CharacterString sprintf which caused endless loop. (#1189)
This commit is contained in:
@@ -63,6 +63,8 @@ The git repositories are hosted at the following sites:
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
* Fixed NULL handling in CharacterString sprintf which caused an endless
|
||||||
|
loop. (#1189)
|
||||||
* Fixed a regression in the rpm_ack_object_property_process() function
|
* Fixed a regression in the rpm_ack_object_property_process() function
|
||||||
that prevented proper parsing of multi-object ReadPropertyMultiple ACK
|
that prevented proper parsing of multi-object ReadPropertyMultiple ACK
|
||||||
responses. The bug was introduced in PR [#765] and caused the function
|
responses. The bug was introduced in PR [#765] and caused the function
|
||||||
|
|||||||
@@ -2099,6 +2099,10 @@ int bacapp_snprintf_character_string(
|
|||||||
retry with the next one. */
|
retry with the next one. */
|
||||||
wclen = 1;
|
wclen = 1;
|
||||||
wc = L'?';
|
wc = L'?';
|
||||||
|
} else if (wclen == 0) {
|
||||||
|
/* Null wide character */
|
||||||
|
wc = L'.';
|
||||||
|
wclen = 1;
|
||||||
} else {
|
} else {
|
||||||
if (!iswprint(wc)) {
|
if (!iswprint(wc)) {
|
||||||
wc = L'.';
|
wc = L'.';
|
||||||
|
|||||||
Reference in New Issue
Block a user