ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/net/atftp/patches/02-fix-invalid-read-in-tftp_send_request.patch b/external/subpack/net/atftp/patches/02-fix-invalid-read-in-tftp_send_request.patch
new file mode 100644
index 0000000..e1cad03
--- /dev/null
+++ b/external/subpack/net/atftp/patches/02-fix-invalid-read-in-tftp_send_request.patch
@@ -0,0 +1,11 @@
+--- a/tftp_io.c
++++ b/tftp_io.c
+@@ -64,7 +64,7 @@ int tftp_send_request(int socket, struct
+ buf_index += strlen(mode);
+ buf_index++;
+
+- for (i = 2; ; i++)
++ for (i = 2; i < OPT_NUMBER; i++)
+ {
+ if (strlen(tftp_options[i].option) == 0)
+ break;