Skip to content

snmp SEGV #17330

Closed
Closed
snmp SEGV#17330
@YuanchengJiang

Description

@YuanchengJiang

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions