Exploit databaseDownload repository ZIP
GH-557a35ec88cecc5153df8ffeda95d1c2
bob11vrdp/cve-2022-39425
Sources for CVE-2022-39425
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files72
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- Makefile.kmk
- a_bitstr.c
- a_d2i_fp.c
- a_digest.c
- a_dup.c
- a_gentm.c
- a_i2d_fp.c
- a_int.c
- a_mbstr.c
- a_object.c
- a_octet.c
- a_print.c
- a_sign.c
- a_strex.c
- a_strnid.c
- a_time.c
- a_type.c
- a_utctm.c
- a_utf8.c
- a_verify.c
- ameth_lib.c
- asn1_err.c
- asn1_gen.c
- asn1_item_list.c
- asn1_item_list.h
- asn1_lib.c
- asn1_local.h
- asn1_par.c
- asn_mime.c
- asn_moid.c
- asn_mstbl.c
- asn_pack.c
- bio_asn1.c
- bio_ndef.c
- build.info
- charmap.h
- charmap.pl
- d2i_pr.c
- d2i_pu.c
- evp_asn1.c
- f_int.c
- f_string.c
- i2d_pr.c
- i2d_pu.c
- n_pkey.c
- nsseq.c
- p5_pbe.c
- p5_pbev2.c
- p5_scrypt.c
- p8_pkey.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/libs/openssl-1.1.1q/crypto/asn1/asn_pack.c
C · 1,629 bytes/*
* Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
#include <stdio.h>
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
/* ASN1 packing and unpacking functions */
ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_STRING **oct)
{
ASN1_STRING *octmp;
if (oct == NULL || *oct == NULL) {
if ((octmp = ASN1_STRING_new()) == NULL) {
ASN1err(ASN1_F_ASN1_ITEM_PACK, ERR_R_MALLOC_FAILURE);
return NULL;
}
} else {
octmp = *oct;
}
OPENSSL_free(octmp->data);
octmp->data = NULL;
if ((octmp->length = ASN1_item_i2d(obj, &octmp->data, it)) == 0) {
ASN1err(ASN1_F_ASN1_ITEM_PACK, ASN1_R_ENCODE_ERROR);
goto err;
}
if (octmp->data == NULL) {
ASN1err(ASN1_F_ASN1_ITEM_PACK, ERR_R_MALLOC_FAILURE);
goto err;
}
if (oct != NULL && *oct == NULL)
*oct = octmp;
return octmp;
err:
if (oct == NULL || *oct == NULL)
ASN1_STRING_free(octmp);
return NULL;
}
/* Extract an ASN1 object from an ASN1_STRING */
void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it)
{
const unsigned char *p;
void *ret;
p = oct->data;
if ((ret = ASN1_item_d2i(NULL, &p, oct->length, it)) == NULL)
ASN1err(ASN1_F_ASN1_ITEM_UNPACK, ASN1_R_DECODE_ERROR);
return ret;
}