more small security fixes

This commit is contained in:
liquidraver
2026-04-30 09:53:03 +02:00
parent 62232bf609
commit e930d6cc9c
2 changed files with 13 additions and 4 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ size_t Packet::writePath(uint8_t *dest, const uint8_t *src, uint8_t path_len)
uint8_t Packet::copyPath(uint8_t *dest, const uint8_t *src, uint8_t path_len)
{
writePath(dest, src, path_len);
return path_len;
size_t written = writePath(dest, src, path_len);
return written > 0 ? path_len : 0;
}
int Packet::getRawLength() const