Skip to content

Commit

Permalink
ASN.1: properly initialize data structure
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Mueller <[email protected]>
  • Loading branch information
smuellerDD committed Nov 11, 2024
1 parent d339413 commit 2bf003a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions asn1/src/x509_cert_generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "lc_x509_generator.h"
#include "oid_registry.h"
#include "ret_checkers.h"
#include "timecop.h"
#include "visibility.h"
#include "x509_algorithm_mapper.h"
#include "x509_cert_generator.h"
Expand Down Expand Up @@ -1192,7 +1191,7 @@ LC_INTERFACE_FUNCTION(int, lc_x509_cert_gen, struct lc_x509_certificate *x509,
{
struct x509_generate_context gctx = { 0 };
struct x509_parse_context pctx = { 0 };
struct lc_x509_certificate parsed_x509;
struct lc_x509_certificate parsed_x509 = { 0 };
size_t datalen = *avail_datalen;
int ret;

Expand All @@ -1208,11 +1207,6 @@ LC_INTERFACE_FUNCTION(int, lc_x509_cert_gen, struct lc_x509_certificate *x509,

datalen -= *avail_datalen;

/*
* Timecop: entire data is public information, unmark it.
*/
unpoison(data, datalen);

/*
* Parse the encoded signature to detect the TBSCertificate
*/
Expand Down

0 comments on commit 2bf003a

Please sign in to comment.