Bug 641623
Summary: | segmentation fault when running ucview with default options with CNF7129 Webcam | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dominik 'Rathann' Mierzejewski <dominik> |
Component: | libunicap | Assignee: | Kamil Dudka <kdudka> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 13 | CC: | kdudka, redhat-bugzilla |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libunicap-0.9.12-7.el5 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-10-22 18:02:56 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dominik 'Rathann' Mierzejewski
2010-10-09 18:35:51 UTC
Thank you for filing the bug! Return value of buffer_mgr_create should be checked: diff --git a/cpi/v4l2cpi/v4l2.c b/cpi/v4l2cpi/v4l2.c --- a/cpi/v4l2cpi/v4l2.c +++ b/cpi/v4l2cpi/v4l2.c @@ -1928,6 +1928,10 @@ static unicap_status_t v4l2_capture_start( void *cpi_data ) } handle->buffer_mgr = buffer_mgr_create( handle->fd, &handle->current_format ); + if( !handle->buffer_mgr ) + { + return STATUS_FAILURE; + } handle->capture_running = 1; fixed in libunicap-0.9.12-3.fc15 proposed upstream: https://bugs.launchpad.net/unicap/+bug/657424 libunicap-0.9.12-2.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/libunicap-0.9.12-2.fc14 libunicap-0.9.12-2.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/libunicap-0.9.12-2.fc13 libunicap-0.9.12-2.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update libunicap'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/libunicap-0.9.12-2.fc14 libunicap-0.9.12-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. libunicap-0.9.12-2.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. libunicap-0.9.12-5.fc12 has been submitted as an update for Fedora 12. https://admin.fedoraproject.org/updates/libunicap-0.9.12-5.fc12 libunicap-0.9.12-5.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/libunicap-0.9.12-5.el5 libunicap-0.9.12-6.fc12 has been submitted as an update for Fedora 12. https://admin.fedoraproject.org/updates/libunicap-0.9.12-6.fc12 libunicap-0.9.12-7.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/libunicap-0.9.12-7.el5 libunicap-0.9.12-6.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. libunicap-0.9.12-7.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report. |