fmClient segfaults on short string parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Lin Shuicheng |
Bug Description
Brief Description
-----------------
The fmClientCli command segfaults with a short parameter, it needs at least 3 characters to work properly.
Severity
--------
Minor
Steps to Reproduce
------------------
Run the following command:
fmClientCli -g he
Noticed that "hel" doesn't causes the segfault.
Expected Behavior
-----------------
The tool should parse the arguments properly and perform actions if the arguments are valid.
Actual Behavior
----------------
fmClientCli segfaults with:
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string:
Aborted (core dumped)
Reproducibility
---------------
100%
Branch/Pull Time/Commit
-------
stx-fault in master
Changed in starlingx: | |
assignee: | Bruce Jones (brucej) → Cindy Xie (xxie1) |
Changed in starlingx: | |
assignee: | Cindy Xie (xxie1) → Lin Shuicheng (shuicheng) |
Changed in starlingx: | |
assignee: | Lin Shuicheng (shuicheng) → Austin Sun (sunausti) |
Changed in starlingx: | |
assignee: | Austin Sun (sunausti) → Lin Shuicheng (shuicheng) |
tags: |
added: stx.2.0 removed: stx.2019.05 |
Same thing happens with -c option:
$ fmClientCli -c 23 :substr
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string:
Aborted (core dumped)