epicsStrPrintEscaped() operate on unterminated string

see 3a2d225682
see f488765631
This commit is contained in:
Michael Davidsaver authored and mdavidsaver committed 2026-05-14 08:44:38 -07:00
1 parent 8bfe89b57d
commit 2f20e78e43
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -220,6 +220,7 @@ void testEpicsStrPrintEscaped(void)
// Passing cases
testOk1(epicsStrPrintEscaped(testFile, "1234", 4) == 4);
testOk1(epicsStrPrintEscaped(testFile, "1234extra", 4) == 4);
testOk1(epicsStrPrintEscaped(testFile, "\a\b\f\n\r\t\v\\\'\"", 10) == 20);
// Failing cases
@@ -236,7 +237,6 @@ void testEpicsStrPrintEscaped(void)
testSkip(1, "fprintf is broken on this system");
}
testOk1(epicsStrPrintEscaped(testFile, NULL, 4) == 0);
testOk1(epicsStrPrintEscaped(testFile, "", 4) == 0);
testOk1(epicsStrPrintEscaped(testFile, "1234", 0) == 0);
fclose(testFile);