Skip to content
Snippets Groups Projects
Commit d92c908d authored by Armin Luntzer's avatar Armin Luntzer
Browse files

rmap return path must be a multiple of 4 bytes

parent 02007847
No related branches found
No related tags found
No related merge requests found
...@@ -684,6 +684,9 @@ int rdcu_set_return_path(uint8_t *path, uint8_t len) ...@@ -684,6 +684,9 @@ int rdcu_set_return_path(uint8_t *path, uint8_t len)
if (len > RMAP_MAX_REPLY_PATH_LEN) if (len > RMAP_MAX_REPLY_PATH_LEN)
return -1; return -1;
if (len & 0x3)
return -1; /* not a multiple of 4 */
if (!path || !len) { if (!path || !len) {
rpath = NULL; rpath = NULL;
rpath_len = 0; rpath_len = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment