test/property_test.c:232: error: BUFFER_OVERRUN_L3
  Offset: [2, +oo] (⇐ [1, +oo] + 1) Size: [1, 11] by call to `ossl_method_store_add`.
Showing all 23 steps of the trace


test/property_test.c:218:9: Array declaration
216.           char *impl;
217.       } impls[] = {
218.           { 6, "position=1", "a" },
               ^
219.           { 6, "position=2", "b" },
220.           { 6, "position=3", "c" },

test/property_test.c:232:14: Call
230.   
231.       for (i = 0; i < OSSL_NELEM(impls); i++)
232.           if (!TEST_true(ossl_method_store_add(store, impls[i].nid, impls[i].prop,
                    ^
233.                                                impls[i].impl, NULL))) {
234.               TEST_note("iteration %zd", i + 1);

crypto/property/property.c:176:1: Parameter `*properties`
  174.   }
  175.   
  176. > int ossl_method_store_add(OSSL_METHOD_STORE *store,
  177.                             int nid, const char *properties,
  178.                             void *method, void (*method_destruct)(void *))

crypto/property/property.c:205:28: Call
  203.       ossl_method_cache_flush(store, nid);
  204.       if ((impl->properties = ossl_prop_defn_get(store->ctx, properties)) == NULL) {
  205.           impl->properties = ossl_parse_property(store->ctx, properties);
                                    ^
  206.           if (impl->properties == NULL)
  207.               goto err;

crypto/property/property_parse.c:317:1: Parameter `*defn`
    315.   }
    316.   
    317. > OSSL_PROPERTY_LIST *ossl_parse_property(OPENSSL_CTX *ctx, const char *defn)
    318.   {
    319.       PROPERTY_DEFINITION *prop = NULL;

crypto/property/property_parse.c:322:5: Assignment
    320.       OSSL_PROPERTY_LIST *res = NULL;
    321.       STACK_OF(PROPERTY_DEFINITION) *sk;
    322.       const char *s = defn;
               ^
    323.       int done;
    324.   

crypto/property/property_parse.c:328:9: Call
    326.           return NULL;
    327.   
    328.       s = skip_space(s);
                   ^
    329.       done = *s == '\0';
    330.       while (!done) {

crypto/property/property_parse.c:50:1: Parameter `*s`
      48.   DEFINE_STACK_OF(PROPERTY_DEFINITION)
      49.   
      50. > static const char *skip_space(const char *s)
      51.   {
      52.       while (ossl_isspace(*s))

crypto/property/property_parse.c:54:5: Assignment
      52.       while (ossl_isspace(*s))
      53.           s++;
      54.       return s;
                ^
      55.   }
      56.   

crypto/property/property_parse.c:328:5: Assignment
    326.           return NULL;
    327.   
    328.       s = skip_space(s);
               ^
    329.       done = *s == '\0';
    330.       while (!done) {

crypto/property/property_parse.c:335:14: Call
    333.               goto err;
    334.           memset(&prop->v, 0, sizeof(prop->v));
    335.           if (!parse_name(ctx, &s, 1, &prop->name_idx))
                        ^
    336.               goto err;
    337.           prop->oper = PROPERTY_OPER_EQ;

crypto/property/property_parse.c:81:1: Parameter `**t`
      79.   }
      80.   
      81. > static int parse_name(OPENSSL_CTX *ctx, const char *t[], int create,
      82.                         OSSL_PROPERTY_IDX *idx)
      83.   {

crypto/property/property_parse.c:342:13: Call
    340.               goto err;
    341.           }
    342.           if (match_ch(&s, '=')) {
                       ^
    343.               if (!parse_value(ctx, &s, prop, 1)) {
    344.                   PROPerr(PROP_F_OSSL_PARSE_PROPERTY, PROP_R_NO_VALUE);

crypto/property/property_parse.c:57:1: Parameter `**t`
      55.   }
      56.   
      57. > static int match_ch(const char *t[], char m)
      58.   {
      59.       const char *s = *t;

crypto/property/property_parse.c:343:18: Call
    341.           }
    342.           if (match_ch(&s, '=')) {
    343.               if (!parse_value(ctx, &s, prop, 1)) {
                            ^
    344.                   PROPerr(PROP_F_OSSL_PARSE_PROPERTY, PROP_R_NO_VALUE);
    345.                   goto err;

crypto/property/property_parse.c:245:1: Parameter `**t`
      243.   }
      244.   
      245. > static int parse_value(OPENSSL_CTX *ctx, const char *t[],
      246.                          PROPERTY_DEFINITION *res, int create)
      247.   {

crypto/property/property_parse.c:248:5: Assignment
      246.                          PROPERTY_DEFINITION *res, int create)
      247.   {
      248.       const char *s = *t;
                 ^
      249.       int r = 0;
      250.   

crypto/property/property_parse.c:265:9: Assignment
      263.           r = parse_hex(&s, res);
      264.       } else if (*s == '0' && ossl_isdigit(s[1])) {
      265.           s++;
                     ^
      266.           r = parse_oct(&s, res);
      267.       } else if (ossl_isdigit(*s)) {

crypto/property/property_parse.c:266:13: Call
      264.       } else if (*s == '0' && ossl_isdigit(s[1])) {
      265.           s++;
      266.           r = parse_oct(&s, res);
                         ^
      267.       } else if (ossl_isdigit(*s)) {
      268.           return parse_number(t, res);

crypto/property/property_parse.c:164:1: <Length trace>
162.   }
163.   
164. > static int parse_oct(const char *t[], PROPERTY_DEFINITION *res)
165.   {
166.       const char *s = *t;

crypto/property/property_parse.c:164:1: Parameter `**t`
        162.   }
        163.   
        164. > static int parse_oct(const char *t[], PROPERTY_DEFINITION *res)
        165.   {
        166.       const char *s = *t;

crypto/property/property_parse.c:166:5: Assignment
        164.   static int parse_oct(const char *t[], PROPERTY_DEFINITION *res)
        165.   {
        166.       const char *s = *t;
                   ^
        167.       int64_t v = 0;
        168.   

crypto/property/property_parse.c:173:14: Array access: Offset: [2, +oo] (⇐ [1, +oo] + 1) Size: [1, 11] by call to `ossl_method_store_add` 
        171.       do {
        172.           v = (v << 3) + (*s - '0');
        173.       } while (ossl_isdigit(*++s) && *s != '9' && *s != '8');
                            ^
        174.       if (!ossl_isspace(*s) && *s != '\0' && *s != ',') {
        175.           PROPerr(PROP_F_PARSE_OCT, PROP_R_NOT_AN_OCTAL_DIGIT);
