fcf6a9f34c475b9bbae54311703e87acd5fb8d1a |
|
13-Feb-2018 |
Lukas Slebodnik <lslebodn@redhat.com> |
SIFP: Suppress warning Wstringop-truncation
It is a false positive because we allocate 0 initialized function
with size "str_len + 1". Result will be always NUL terminated.
src/lib/sifp/sss_sifp_utils.c: In function ‘sss_sifp_strdup’:
src/lib/sifp/sss_sifp_utils.c:62:5: warning: ‘strncpy’ output
truncated before terminating nul copying as many bytes from
a string as its length [-Wstringop-truncation]
strncpy(result, str, str_len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/sifp/sss_sifp_utils.c:56:15: note: length computed here
str_len = strlen(str);
^~~~~~~~~~~
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> |
8618716d6ed4eadca2743eb2dfbbb8d11c4fb22f |
|
01-Dec-2016 |
Lukas Slebodnik <lslebodn@redhat.com> |
SIFP: Fix warning format-security
dbus-1.11.8 added attributes for format string check to
few functions in public header files. And therefore there is a warning.
src/lib/sifp/sss_sifp_utils.c: In function ‘sss_sifp_set_io_error’:
src/lib/sifp/sss_sifp_utils.c:44:5: error: format not a string literal
and no format arguments [-Werror=format-security]
dbus_set_error(ctx->io_error, error->name, error->message);
^~~~~~~~~~~~~~
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
2a45f13e3139063d3a5842119e7377c8c98aea1d |
|
27-Jun-2016 |
Pavel Březina <pbrezina@redhat.com> |
sss_sifp: make it compatible with latest version of the infopipe
Current version of infopipe leverage different interfaces and
object paths which were not accessible through the simple ifp
library. This patch changes the API, which is ok since it was
never declared as a public library and beside deprecated
openlmi there are no known users. We will use this in sssctl tool.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
91cf6f4c6069d6aff01aab171825e83a1a669e2f |
|
29-May-2014 |
Pavel Březina <pbrezina@redhat.com> |
sss_sifp: implement API
https://fedorahosted.org/sssd/ticket/2254
Reviewed-by: Sumit Bose <sbose@redhat.com> |