Skip to content
Permalink
Browse files

Fix for crash while fixing sentence case (#1122)

Check for null pointer before extracting data
  • Loading branch information
rboy1 authored and cfsmp3 committed Nov 12, 2019
1 parent bdfe4ca commit 7ad5859629c87a67ff6476b786e32839347bb680
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/lib_ccx/telxcc.c
@@ -528,6 +528,9 @@ uint16_t bcd_page_to_int (uint16_t bcd)

void telx_case_fix (struct TeletextCtx *context)
{
if (context->page_buffer_cur == NULL)
return;

//Capitalizing first letter of every sentence
int line_len = strlen(context->page_buffer_cur);
for(int i = 0; i < line_len; i++)

0 comments on commit 7ad5859

Please sign in to comment.
You can’t perform that action at this time.