pnoltes commented on code in PR #518:
URL: https://github.com/apache/celix/pull/518#discussion_r1165561298
##########
libs/error_injector/asprintf/src/asprintf_ei.cc:
##########
@@ -37,4 +37,13 @@ int __wrap_asprintf(char** buf, const char* format, ...) {
return rc;
}
+int __real_vasprintf(char **buf, const char *format, va_list args);
+CELIX_EI_DEFINE(vasprintf, int)
+int __wrap_vasprintf(char **buf, const char *format, va_list args) {
+ errno = ENOMEM;
+ CELIX_EI_IMPL(vasprintf);
+ errno = 0;
+ return __real_vasprintf(buf, format, args);
Review Comment:
yes of course, I will update this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]