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


test/property_test.c:229:9: Array declaration
227.           char *impl;
228.       } impls[] = {
229.           { 6, "position=1", "a" },
               ^
230.           { 6, "position=2", "b" },
231.           { 6, "position=3", "c" },

test/property_test.c:243:14: Call
241.   
242.       for (i = 0; i < OSSL_NELEM(impls); i++)
243.           if (!TEST_true(ossl_method_store_add(store, NULL, impls[i].nid,
                    ^
244.                                                impls[i].prop, impls[i].impl,
245.                                                NULL, NULL))) {

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

crypto/property/property.c:213:28: Call
  211.       ossl_method_cache_flush(store, nid);
  212.       if ((impl->properties = ossl_prop_defn_get(store->ctx, properties)) == NULL) {
  213.           impl->properties = ossl_parse_property(store->ctx, properties);
                                    ^
  214.           if (impl->properties == NULL)
  215.               goto err;

crypto/property/property_parse.c:329:1: Parameter `*defn`
    327.   }
    328.   
    329. > OSSL_PROPERTY_LIST *ossl_parse_property(OPENSSL_CTX *ctx, const char *defn)
    330.   {
    331.       PROPERTY_DEFINITION *prop = NULL;

crypto/property/property_parse.c:334:5: Assignment
    332.       OSSL_PROPERTY_LIST *res = NULL;
    333.       STACK_OF(PROPERTY_DEFINITION) *sk;
    334.       const char *s = defn;
               ^
    335.       int done;
    336.   

crypto/property/property_parse.c:340:9: Call
    338.           return NULL;
    339.   
    340.       s = skip_space(s);
                   ^
    341.       done = *s == '\0';
    342.       while (!done) {

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

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

crypto/property/property_parse.c:340:5: Assignment
    338.           return NULL;
    339.   
    340.       s = skip_space(s);
               ^
    341.       done = *s == '\0';
    342.       while (!done) {

crypto/property/property_parse.c:350:14: Call
    348.           memset(&prop->v, 0, sizeof(prop->v));
    349.           prop->optional = 0;
    350.           if (!parse_name(ctx, &s, 1, &prop->name_idx))
                        ^
    351.               goto err;
    352.           prop->oper = PROPERTY_OPER_EQ;

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

crypto/property/property_parse.c:358:13: Call
    356.               goto err;
    357.           }
    358.           if (match_ch(&s, '=')) {
                       ^
    359.               if (!parse_value(ctx, &s, prop, 1)) {
    360.                   ERR_raise_data(ERR_LIB_PROP, PROP_R_NO_VALUE,

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

crypto/property/property_parse.c:359:18: Call
    357.           }
    358.           if (match_ch(&s, '=')) {
    359.               if (!parse_value(ctx, &s, prop, 1)) {
                            ^
    360.                   ERR_raise_data(ERR_LIB_PROP, PROP_R_NO_VALUE,
    361.                                  "HERE-->%s", start);

crypto/property/property_parse.c:254:1: Parameter `**t`
      252.   }
      253.   
      254. > static int parse_value(OPENSSL_CTX *ctx, const char *t[],
      255.                          PROPERTY_DEFINITION *res, int create)
      256.   {

crypto/property/property_parse.c:257:5: Assignment
      255.                          PROPERTY_DEFINITION *res, int create)
      256.   {
      257.       const char *s = *t;
                 ^
      258.       int r = 0;
      259.   

crypto/property/property_parse.c:261:9: Assignment
      259.   
      260.       if (*s == '"' || *s == '\'') {
      261.           s++;
                     ^
      262.           r = parse_string(ctx, &s, s[-1], res, create);
      263.       } else if (*s == '+') {

crypto/property/property_parse.c:262:13: Call
      260.       if (*s == '"' || *s == '\'') {
      261.           s++;
      262.           r = parse_string(ctx, &s, s[-1], res, create);
                         ^
      263.       } else if (*s == '+') {
      264.           s++;

crypto/property/property_parse.c:190:1: Parameter `**t`
        188.   }
        189.   
        190. > static int parse_string(OPENSSL_CTX *ctx, const char *t[], char delim,
        191.                           PROPERTY_DEFINITION *res, const int create)
        192.   {

crypto/property/property_parse.c:194:5: Assignment
        192.   {
        193.       char v[1000];
        194.       const char *s = *t;
                   ^
        195.       size_t i = 0;
        196.       int err = 0;

crypto/property/property_parse.c:216:10: Call
        214.           res->v.str_val = ossl_property_value(ctx, v, create);
        215.       }
        216.       *t = skip_space(s + 1);
                        ^
        217.       res->type = PROPERTY_TYPE_STRING;
        218.       return !err;

crypto/property/property_parse.c:52:1: <Length trace>
50.   DEFINE_STACK_OF(PROPERTY_DEFINITION)
51.   
52. > static const char *skip_space(const char *s)
53.   {
54.       while (ossl_isspace(*s))

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

crypto/property/property_parse.c:54:12: Array access: Offset: [2, +oo] Size: [1, 11] by call to `ossl_method_store_add` 
          52.   static const char *skip_space(const char *s)
          53.   {
          54.       while (ossl_isspace(*s))
                           ^
          55.           s++;
          56.       return s;
