Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-122

Wrong sizeof in INI entry

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.4
    • Affects Version/s: 0.1.3
    • Component/s: None
    • None

      CID-49598

      CID 49572: Incorrect sizeof expression (BAD_SIZEOF) [select issue]
         
      CID 49598 (#1 of 1): Wrong sizeof argument (SIZEOF_MISMATCH)suspicious_sizeof: Passing argument (*tmp)->value.str.val of type char * and argument 8U /* sizeof ((char *)"phongo.debug_log") */ to function zend_alter_ini_entry_ex is suspicious.
      108                        zend_alter_ini_entry_ex(ZEND_STRS((char *)"phongo.debug_log"), Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), PHP_INI_USER, PHP_INI_STAGE_RUNTIME, 0 TSRMLS_CC);
      
      ID 49598 (#1 of 1): Wrong sizeof argument (SIZEOF_MISMATCH)suspicious_sizeof: Passing argument (*tmp)->value.str.val of type char * and argument 8U /* sizeof ((char *)"phongo.debug_log") */ to function zend_alter_ini_entry_ex is suspicious.
      108                        zend_alter_ini_entry_ex(ZEND_STRS((char *)"phongo.debug_log"), Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), PHP_INI_USER, PHP_INI_STAGE_RUNTIME, 0 TSRMLS_CC);
      109                }
      
      CID 49598: Wrong sizeof argument (SIZEOF_MISMATCH) [select issue]
         
      CID 49572 (#1 of 1): Incorrect sizeof expression (BAD_SIZEOF)bad_sizeof: Taking the size of "phongo.debug_log", which is the address of an object, is suspicious.
         
      Did you intend the size of "phongo.debug_log" itself?
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: