Closed
Description
Description
The following code:
<?php
$session = new SNMP(SNMP::VERSION_2c, $hostname, 'timeout_community_432', $timeout, $retries);
$session->close();
$session->setSecurity('authPriv', 'MD5', $auth_pass, 'AES', $priv_pass);
Resulted in this output:
/home/phpfuzz/WorkSpace/flowfusion/php-src/ext/snmp/snmp.c:952:6: runtime error: member access within null pointer of type 'struct snmp_session'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/phpfuzz/WorkSpace/flowfusion/php-src/ext/snmp/snmp.c:952:6
PHP Version
nightly
Operating System
No response