[riot-notifications] [RIOT-OS/RIOT] suit: Initial minimal SUIT parser (#10315)

Koen Zandberg notifications at github.com
Wed Feb 27 08:51:05 CET 2019


bergzand commented on this pull request.



> +
+    if(_advance_x(&arr, SUIT_MANIFEST_IDX_PAYLOADINFO) < 0) {
+        /* If it is impossible to advance to the payloadinfo we assume that
+         * there is no payloadinfo. Length validation is already done by
+         * _validate_manifest, an invalid array length should not be possible
+         * at this point.
+         */
+        return SUIT_OK;
+    }
+
+    if (_validate_payloadinfo(&arr)) {
+        return SUIT_ERR_INVALID_MANIFEST;
+    }
+    return SUIT_OK;
+}
+

Removed

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10315#discussion_r260625805
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190227/1258913f/attachment-0001.html>


More information about the notifications mailing list