-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Fix a bunch of null dereference warnings related to MPEG descri…
…ptors. The clang-tidy "null dereference" checker pointed out a bunch of potential null dereferences in the mpeg descriptor/tables code. These are the result of the code creating various objects, and then blindly dereferencing the _data pointer in those objects (mostly via member functions). The problem with those dereferences is that the object constructor clears the _data pointer if the information passed into the constructor was too short. Add a number of tests to check the validity of the _data pointer before dereferencing it. This change also tightens up the code to select Australian and Greek category names from the EIT information, replacing switch statements with table lookups.
- Loading branch information
1 parent
2098739
commit a418d34
Showing
12 changed files
with
144 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.