mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-17 03:07:24 -05:00
Fix Some UTF8 String Overflow Issues;
This commit is contained in:
@@ -254,7 +254,12 @@ void p25_decode_pdu_data(dsd_opts * opts, dsd_state * state, uint8_t * input, in
|
||||
else if (sap == 48) //Tier 1 Location Service (or does it depend on the io bit?)
|
||||
utf8_to_text(state, 0, len-ptr, input+ptr); //TODO, read initial string, i.e., $GPRMC and properly decode
|
||||
|
||||
else utf8_to_text(state, 0, len-ptr, input+ptr); //default catch all
|
||||
else //default catch all
|
||||
{
|
||||
if (len > ptr)
|
||||
utf8_to_text(state, 0, len-ptr, input+ptr);
|
||||
else utf8_to_text(state, 0, len, input+ptr);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user