-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGSEGV: not enough space or error in allocation for extenstion #233
Comments
Please retest with the latest version of either the v5.9 branch or the master branch. |
This problem was tested on v5.9 and exists in the v5.9 and master branch. Please don't close issues until they have been properly investigated. I've pointed out the line of the code where the problem lies, github makes it trivial to see this problem on various branches. I have a patch that avoids the crash, I have to mess about with forks before I can submit it. You'll see that shortly. |
Reopened. This issue was closed automatically by github since I used the "Fixes:" tag in a commit description. |
No worries, github is being too clever for its own good. |
Bug at Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=1908718 |
Hi, IIUC this is fixed in both the master and V5-9-patches branches (bb30f8e), and this issue is still open waiting for confirmation that the fix actually works, correct? |
Not correct, no. Two fixes were developed at the same time, and clashed. The first fix to the segfault only auto-closed this ticket (thanks github) and the ticket was reopened. The second fix also fixed the buffer-too-small that triggered the error path that caused the crash. All outstanding PRs have been committed, this ticket can be closed. |
When configuring snmpd to read a certificate that has been put in place via a symbolic link, snmpd crashes as follows:
Working backwards from the last (misspelled - "extension") error message:
https://github.com/haad/net-snmp/blob/c629882ba31aaf27c859de2d47a6401849661ccd/snmplib/snmp_openssl.c#L222
We return NULL from _cert_get_extension().
Searching for cases where we call _cert_get_extension() but don't handle a NULL result:
net-snmp/snmplib/snmp_openssl.c
Line 502 in f7ceedb
The text was updated successfully, but these errors were encountered: