mavlink_log_handler: fix potential buffer overflow

This commit is contained in:
Beat Küng
2017-04-06 11:48:35 +02:00
committed by Lorenz Meier
parent b0ee1579a9
commit c7d9a7a6d1
2 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ public:
public:
bool get_entry(int idx, uint32_t &size, uint32_t &date, char *filename = 0);
bool get_entry(int idx, uint32_t &size, uint32_t &date, char *filename = 0, int filename_len = 0);
bool open_for_transmit();
size_t get_log_data(uint8_t len, uint8_t *buffer);