Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1652612 - There is memory leak at liblas::Open(liblas/liblas.hpp:127) in libLAS.
Summary: There is memory leak at liblas::Open(liblas/liblas.hpp:127) in libLAS.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: liblas
Version: 31
Hardware: All
OS: All
unspecified
urgent
Target Milestone: ---
Assignee: Sandro Mani
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-22 13:17 UTC by shuitao gan
Modified: 2020-04-25 03:00 UTC (History)
2 users (show)

Fixed In Version: liblas-1.8.1-5.fc32 liblas-1.8.1-5.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-25 02:22:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
./las2pg POC3 (640 bytes, text/plain)
2018-11-22 13:17 UTC, shuitao gan
no flags Details

Description shuitao gan 2018-11-22 13:17:20 UTC
Created attachment 1507938 [details]
./las2pg POC3

version: libLAS2.4
Summary: 

There is memory leak at liblas::Open(liblas/liblas.hpp:127) in libLAS.

Description:

The asan debug is as follows:

$./las2pg POC3
=================================================================
==41016==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 520 byte(s) in 1 object(s) allocated from:
    #0 0x7f94b41c88b2 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x998b2)
    #1 0x7f94b3f02a37 in liblas::Open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode) /home/company/real_sanitize/libLAS-master/include/liblas/liblas.hpp:127
    #2 0x7f94b3f02a37 in LASReader_Create /home/company/real_sanitize/libLAS-master/src/c_api.cpp:237

Indirect leak of 8192 byte(s) in 1 object(s) allocated from:
    #0 0x7f94b41c8a32 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99a32)
    #1 0x7f94b276c8a7 in std::basic_filebuf<char, std::char_traits<char> >::_M_allocate_internal_buffer() (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xec8a7)

SUMMARY: AddressSanitizer: 8712 byte(s) leaked in 2 allocation(s).

Comment 1 Nicholas Luedtke 2018-12-31 17:19:51 UTC
This appears to be CVE-2018-20540.

Comment 2 Ben Cotton 2019-08-13 16:59:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 3 Ben Cotton 2019-08-13 19:38:29 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 4 Fedora Admin XMLRPC Client 2020-03-04 04:18:56 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 5 Fedora Admin XMLRPC Client 2020-04-14 16:43:16 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 6 Fedora Update System 2020-04-14 20:14:17 UTC
FEDORA-2020-6dbbecb893 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-6dbbecb893

Comment 7 Fedora Update System 2020-04-14 20:14:18 UTC
FEDORA-2020-b0695fcdf7 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b0695fcdf7

Comment 8 Fedora Update System 2020-04-15 19:57:55 UTC
FEDORA-2020-b0695fcdf7 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b0695fcdf7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b0695fcdf7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2020-04-16 19:27:57 UTC
FEDORA-2020-6dbbecb893 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-6dbbecb893`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-6dbbecb893

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2020-04-25 02:22:32 UTC
FEDORA-2020-6dbbecb893 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2020-04-25 03:00:45 UTC
FEDORA-2020-b0695fcdf7 has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.