Merge remote-tracking branch 'ul/dev' into mntm-dev

This commit is contained in:
Willy-JL
2024-07-15 23:23:05 +01:00
2 changed files with 8 additions and 2 deletions

View File

@@ -110,7 +110,9 @@
- Archive:
- Fix favorite's parent folders thinking they are favorited too (by @Willy-JL)
- Fix rename extension show/hide behavior (by @Willy-JL)
- Infrared: Correct Samsung.ir CH+ command (by @skyhawkillusions)
- Infrared:
- Correct Samsung.ir CH+ command (by @skyhawkillusions)
- OFW: Check for negative timings (by @gsurkov)
- FBT:
- Consistent version/branch info, fix gitorigin (by @Willy-JL)
- OFW: Fixed starting apps with spaces in path (by @hedger)

View File

@@ -400,7 +400,11 @@ bool flipper_format_stream_read_value_line(
}; break;
case FlipperStreamValueUint32: {
uint32_t* data = _data;
scan_values = sscanf(furi_string_get_cstr(value), "%" PRIu32, &data[i]);
// Minus sign is allowed in scanf() for unsigned numbers, resulting in unintentionally huge values with no error reported
if(!furi_string_start_with(value, "-")) {
scan_values =
sscanf(furi_string_get_cstr(value), "%" PRIu32, &data[i]);
}
}; break;
case FlipperStreamValueHexUint64: {
uint64_t* data = _data;