[mythtv-commits] [MythTV/mythtv] c8dc17: Fix array bounds error

kmdewaal noreply at github.com
Sat Oct 3 09:53:08 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: c8dc17cb0019ad30517efe3c39d9548bdd117140
      https://github.com/MythTV/mythtv/commit/c8dc17cb0019ad30517efe3c39d9548bdd117140
  Author: Klaas de Waal <kdewaal at mythtv.org>
  Date:   2020-10-03 (Sat, 03 Oct 2020)

  Changed paths:
    M mythtv/libs/libmythtv/recorders/analogsignalmonitor.cpp

  Log Message:
  -----------
  Fix array bounds error

Fix array bounds error flagged by clang.
recorders/analogsignalmonitor.cpp:58:29: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
    ext_ctrls.reserved[0] = ext_ctrls.reserved[1] = 0;
                            ^                  ~
/usr/include/linux/videodev2.h:1705:2: note: array 'reserved' declared here
        __u32 reserved[1];
        ^
1 warning generated.




More information about the mythtv-commits mailing list