1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-20 18:53:47 +01:00
Files
esphome/script
J. Nick Koston ef52ce4d76 [api_protobuf] Address copilot review: add bounds checking and clarify 32-bit loop intent
- Add bounds checking in decode_varint_content to prevent undefined behavior if decoded enum value exceeds 31
- Add clarifying comments that 32-bit loops in encode_content and get_size_calculation are intentional to support the full range of enum_as_bitmask (enums with up to 32 values)
- The uint32_t storage type supports general-purpose enum_as_bitmask, not just ColorMode's 10 values
2025-10-18 11:56:40 -10:00
..
2023-11-25 10:18:36 +11:00