Browse Source

support disabling max_blob_size

ENGINE-898
Volker Birk 11 months ago
parent
commit
00c658e735
2 changed files with 12 additions and 0 deletions
  1. +8
    -0
      src/map_asn1.c
  2. +4
    -0
      src/map_asn1.h

+ 8
- 0
src/map_asn1.c View File

@ -409,6 +409,8 @@ BlobList_t *BlobList_from_bloblist(
)
{
bool allocated = !result;
if (!max_blob_size)
max_blob_size = SIZE_MAX;
assert(list && list->value);
if (!(list && list->value))
@ -517,6 +519,8 @@ bloblist_t *BlobList_to_bloblist(
)
{
bool allocated = !result;
if (!max_blob_size)
max_blob_size = SIZE_MAX;
assert(list);
if (!list)
@ -617,6 +621,8 @@ PEPMessage_t *PEPMessage_from_message(
)
{
bool allocated = !result;
if (!max_blob_size)
max_blob_size = SIZE_MAX;
assert(msg);
if (!msg)
@ -856,6 +862,8 @@ message *PEPMessage_to_message(
)
{
bool allocated = !result;
if (!max_blob_size)
max_blob_size = SIZE_MAX;
assert(msg);
if (!msg)


+ 4
- 0
src/map_asn1.h View File

@ -212,6 +212,7 @@ stringlist_t *PStringList_to_stringlist(
* @param result[inout] BlobList_t to update or NULL to alloc a new one
* @param copy copy data if true, move data otherwise
* @param max_blob_size reject if sum(blob.size) > max_blob_size
* to disable set to 0
*
* @retval pointer to updated or allocated result
*
@ -236,6 +237,7 @@ BlobList_t *BlobList_from_bloblist(
* @param result[inout] bloblist_t to update or NULL to alloc a new one
* @param copy copy data if true, move data otherwise
* @param max_blob_size reject if sum(blob.size) > max_blob_size
* to disable set to 0
*
* @retval pointer to updated or allocated result
*
@ -260,6 +262,7 @@ bloblist_t *BlobList_to_bloblist(
* @param result[inout] PEPMessage_t to update or NULL to alloc a new one
* @param copy copy data if true, move data otherwise
* @param max_blob_size reject if sum(blob.size) > max_blob_size
* to disable set to 0
*
* @retval pointer to updated or allocated result
*
@ -284,6 +287,7 @@ PEPMessage_t *PEPMessage_from_message(
* @param result[inout] message to update or NULL to alloc a new one
* @param copy copy data if true, move data otherwise
* @param max_blob_size reject if sum(blob.size) > max_blob_size
* to disable set to 0
*
* @retval pointer to updated or allocated result
*


Loading…
Cancel
Save