Gitiles
Code Review
Sign In
192.168.1.100
/
T108
/
e958203796650e3959a43708d67534bf36f4c83b
/
.
/
external
/
subpack
/
net
/
atftp
/
patches
/
02-fix-invalid-read-in-tftp_send_request.patch
blob: e1cad03b95291654feca549689cc0b4bdc7348ce [
file
] [
log
] [
blame
]
---
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
;