[mythtv-commits] [MythTV/mythtv] 5acba1: bitreader.h: get_upper_bits() make undefined behav...
Scott Theisen
noreply at github.com
Fri Jul 29 18:03:36 UTC 2022
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 5acba1b09ff8dd955ee708522aa67c2bada335c9
https://github.com/MythTV/mythtv/commit/5acba1b09ff8dd955ee708522aa67c2bada335c9
Author: Scott Theisen <scott.the.elm at gmail.com>
Date: 2022-07-29 (Fri, 29 Jul 2022)
Changed paths:
M mythtv/libs/libmythtv/bitreader.h
Log Message:
-----------
bitreader.h: get_upper_bits() make undefined behavior protection consistent
If bits == 0, which should never occur, we want the top 0 bits.
Return 0, as would be expected from shifting in 64 `0` bits.
Also, mask_upper(0) returns 0, which would clear all the bits anyways.
More information about the mythtv-commits
mailing list