diff options
author | Werner Koch <wk@gnupg.org> | 2021-03-31 19:16:05 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2021-03-31 19:16:05 +0200 |
commit | 1c16878efd0bcf036f56abef93d64ac41ce9e95b (patch) | |
tree | 28f4edf61e6f72c891a4c45349f5b22410829382 /scd/app-dinsig.c | |
parent | build: Require automake 1.16.3 (diff) | |
download | gnupg2-1c16878efd0bcf036f56abef93d64ac41ce9e95b.tar.xz gnupg2-1c16878efd0bcf036f56abef93d64ac41ce9e95b.zip |
scd: Replace all assert macros by the log_assert macro.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'scd/app-dinsig.c')
-rw-r--r-- | scd/app-dinsig.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scd/app-dinsig.c b/scd/app-dinsig.c index 84d4b2aa7..990de3405 100644 --- a/scd/app-dinsig.c +++ b/scd/app-dinsig.c @@ -74,7 +74,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <assert.h> #include <time.h> #include "scdaemon.h" @@ -229,7 +228,7 @@ do_readcert (app_t app, const char *certid, else return gpg_error (GPG_ERR_INV_OBJ); totobjlen = objlen + hdrlen; - assert (totobjlen <= buflen); + log_assert (totobjlen <= buflen); err = parse_ber_header (&p, &n, &class, &tag, &constructed, &ndef, &objlen, &hdrlen); @@ -260,7 +259,7 @@ do_readcert (app_t app, const char *certid, if ( !(class == CLASS_UNIVERSAL && tag == TAG_SEQUENCE && constructed) ) return gpg_error (GPG_ERR_INV_OBJ); totobjlen = objlen + hdrlen; - assert (save_p + totobjlen <= buffer + buflen); + log_assert (save_p + totobjlen <= buffer + buflen); memmove (buffer, save_p, totobjlen); } |