Skip to content

undefined behavior in snmp #21336

Closed
Closed

Description

@chongwick

Description

The following code:

<?php
$v_4373 = False;
$v_4374 = snmp_set_quick_print($v_4373,);
$v_4375 = SNMP_VALUE_PLAIN;
$v_4376 = snmp_set_valueretrieval($v_4375,);
$v_4378 = $hostname;
$v_4379 = $user_noauth;
$v_4380 = $timeout;
$v_4381 = $retries;
$v_4377 = SNMP::VERSION_3;
$v_4382 = new SNMP($v_4377,$v_4378,$v_4374,$v_4380,$v_4381,);
$v_4422 = 'authPriv';
$v_4384 = $v_4382->setSecurity($v_4422,);

Resulted in this output:

/home/w023dtc/nightly_php/php-src/ext/snmp/snmp.c:1011:6: runtime error: member access within null pointer of type 'zend_string' (aka 'struct _zend_string')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/w023dtc/nightly_php/php-src/ext/snmp/snmp.c:1011:6

PHP Version

nightly

Operating System

No response

Activity

  1. self-assigned this
    on Mar 4, 2026
  2. added a commit that references this issue on Mar 4, 2026
    90862fe
  3. added a commit that references this issue on Mar 5, 2026
    39f1ed4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions