After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 751305 - bad: fix some issues found using static analysis tools
bad: fix some issues found using static analysis tools
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Linux
: Normal minor
: 1.5.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-22 01:54 UTC by Vineeth
Modified: 2015-06-22 09:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix wrong assigment (2.58 KB, patch)
2015-06-22 01:57 UTC, Vineeth
none Details | Review
trivial cleanup (1.03 KB, patch)
2015-06-22 01:58 UTC, Vineeth
committed Details | Review
irtspparse initialize framesize (867 bytes, patch)
2015-06-22 02:01 UTC, Vineeth
rejected Details | Review
uvch264_src: add missing break (960 bytes, patch)
2015-06-22 02:03 UTC, Vineeth
committed Details | Review
mpeg1systemencode fix wrong assignment (946 bytes, patch)
2015-06-22 02:06 UTC, Vineeth
reviewed Details | Review

Description Vineeth 2015-06-22 01:54:07 UTC
While running static analysis tool(cppcheck) on bad plugins, found some potential issues which might create problems later. Attaching patches for the same.
Comment 1 Vineeth 2015-06-22 01:57:11 UTC
Created attachment 305794 [details] [review]
fix wrong assigment
Comment 2 Vineeth 2015-06-22 01:58:33 UTC
Created attachment 305795 [details] [review]
trivial cleanup
Comment 3 Vineeth 2015-06-22 02:01:19 UTC
Created attachment 305796 [details] [review]
irtspparse initialize framesize
Comment 4 Vineeth 2015-06-22 02:03:50 UTC
Created attachment 305797 [details] [review]
uvch264_src: add missing break
Comment 5 Vineeth 2015-06-22 02:06:22 UTC
Created attachment 305798 [details] [review]
mpeg1systemencode fix wrong assignment
Comment 6 Tim-Philipp Müller 2015-06-22 08:11:10 UTC
Comment on attachment 305798 [details] [review]
mpeg1systemencode fix wrong assignment

This plugin was never even ported to 0.8, I've removed it now.
Comment 7 Tim-Philipp Müller 2015-06-22 08:33:54 UTC
Comment on attachment 305797 [details] [review]
uvch264_src: add missing break

commit dd3f3142bca5e8750f17d2fdde4c0a689059f319
Author: Vineeth TM <vineeth.tm@samsung.com>
Date:   Mon Jun 22 11:03:15 2015 +0900

    uvch264_src: add missing break in caps query handler
    
    There is a missing break statement in switch,
    which will result in executing default case as well
    resulting in wrong behavior
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751305
Comment 8 Tim-Philipp Müller 2015-06-22 09:13:51 UTC
Comment on attachment 305795 [details] [review]
trivial cleanup

commit 39d657c27476659c5f38acd93e5ff098bd84805a
Author: Vineeth TM <vineeth.tm@samsung.com>
Date:   Mon Jun 22 10:58:00 2015 +0900

    tsmux: code style fix
    
    trivial patch to add proper ( while checking for if(G_UNLIKELY())
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751305
Comment 9 Tim-Philipp Müller 2015-06-22 09:54:46 UTC
Comment on attachment 305796 [details] [review]
irtspparse initialize framesize

This doesn't "hurt" of course, but it's also not needed, it's a false positive.

commit 794c647f595dbb0bc9abcc6f40aa885a8079fcd6
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Mon Jun 22 10:49:50 2015 +0100

    irtspparse: reflow code to avoid uninitialized variable warning
    
    This should hopefully allow even the most challenged static
    code analyzer to figure out that it's all fine. Also makes
    the flow clearer.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751305