<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p style="color: #777777;">
<a href="https://gitlab.com/nmav">Nikos Mavrogiannopoulos</a>
commented:
</p>
<div style="">
<p dir="auto">The libtasn1 node contains the following:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">#define ASN1_SMALL_VALUE_SIZE 16</span>
<span id="LC2" class="line" lang="plaintext">struct asn1_node_st</span>
<span id="LC3" class="line" lang="plaintext">{</span>
<span id="LC4" class="line" lang="plaintext">  /* public fields: */</span>
<span id="LC5" class="line" lang="plaintext">  char name[ASN1_MAX_NAME_SIZE + 1];    /* Node name */</span>
<span id="LC6" class="line" lang="plaintext">  unsigned int name_hash;</span>
<span id="LC7" class="line" lang="plaintext">  unsigned int type;            /* Node type */</span>
<span id="LC8" class="line" lang="plaintext">  unsigned char *value;         /* Node value */</span>
<span id="LC9" class="line" lang="plaintext">  int value_len;</span>
<span id="LC10" class="line" lang="plaintext">  asn1_node down;               /* Pointer to the son node */</span>
<span id="LC11" class="line" lang="plaintext">  asn1_node right;              /* Pointer to the brother node */</span>
<span id="LC12" class="line" lang="plaintext">  asn1_node left;               /* Pointer to the next list element */</span>
<span id="LC13" class="line" lang="plaintext">  /* private fields: */</span>
<span id="LC14" class="line" lang="plaintext">  unsigned char small_value[ASN1_SMALL_VALUE_SIZE];     /* For small values */</span>
<span id="LC15" class="line" lang="plaintext"></span>
<span id="LC16" class="line" lang="plaintext">  /* values used during decoding/coding */</span>
<span id="LC17" class="line" lang="plaintext">  int tmp_ival;</span>
<span id="LC18" class="line" lang="plaintext">  unsigned start; /* the start of the DER sequence - if decoded */</span>
<span id="LC19" class="line" lang="plaintext">  unsigned end; /* the end of the DER sequence - if decoded */</span>
<span id="LC20" class="line" lang="plaintext">};</span></code></pre>
<p dir="auto">It can store data <16 bytes inside the node (small_value), or allocate more data if larger. That from what you write seems to be related to allocated data in <code>_asn1_set_value</code>.</p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/libtasn1/issues/9#note_193327009">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/149490b4a80221caf9eb40968043890d/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/libtasn1/issues/9#note_193327009"}}</script>


</p>
</div>
</body>
</html>