Skip to content

cellular: valgrind defect fix #10269

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

Merged
merged 1 commit into from Apr 3, 2019
Merged

cellular: valgrind defect fix #10269

merged 1 commit into from Apr 3, 2019

Conversation

ghost
Copy link

@ghost ghost commented Mar 29, 2019

Description

This fixes cellular Valgrind memtest defects. Tested with unit tests. cellulardevicetest.cpp valgrind problem is going to be addressed separately

Pull request type

[ X ] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@jarvte @mirelachirica

@ciarmcom ciarmcom requested review from jarvte, mirelachirica and a team March 29, 2019 08:00
@ciarmcom
Copy link
Member

@TeemuKultala, thank you for your changes.
@mirelachirica @jarvte @ARMmbed/mbed-os-wan @ARMmbed/mbed-os-maintainers please review.

@NirSonnenschein
Copy link
Contributor

@jarvte could you please re-approve (your approval seems to have been cleared, although I don't see any subsequent changes)

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the commit message is not sufficient for this fix. please add more details - what issues is this fixing and how. The only relevant change I can see in the at_cellulardevicetest.cpp but the rest of changes are not clear to me what they are fixing.

@amq
Copy link
Contributor

amq commented Apr 1, 2019

How did you run valgrind?

at_cellulardevicetest.cpp: fix potential memory leak
at_cellularsmstest.cpp: fix potential memory leak, uninitialized memory conditional
athandlertest.cpp: fix potential memory leak, uninitialized memory conditional,
uninitialized memory read
ATHandler_stub.cpp, ATHandler_stub.h: fix potential memory leak, uninitialized memory conditional
@ghost
Copy link
Author

ghost commented Apr 3, 2019

Discovered valgrind defect types for each file added to the commit message. How the defects are fixed can be seen by inspecting the changes. Valgrind test was ran this way:
./UNITTESTS/mbed_unittest.py -d --compile --coverage both
cd build
ctest -T memcheck

After this the report is available in Testing/current_date_time folder

@mbed-ci
Copy link

mbed-ci commented Apr 3, 2019

Test run: SUCCESS

Summary: 1 of 1 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 2369c12 into ARMmbed:master Apr 3, 2019
@ghost ghost deleted the cellular_valgrind_fix branch May 13, 2019 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants