search for: tftp_opt

Displaying 3 results from an estimated 3 matches for "tftp_opt".

2009 Aug 08
2
[PATCH] pxe: fix OACK packet handling
...ptions + buffersize - 1) != 0) + goto done; /* found no final null */ + /* * Parse option pointed to by options; guaranteed to be null-terminated */ @@ -944,8 +940,10 @@ static void pxe_searchdir(char *filename, struct file *file) do { tftp_opt = tftp_options; for (i = 0; i < tftp_opts; i++) { - if (!strncmp(p, tftp_opt->str_ptr,tftp_opt->str_len)) + if (!strncmp(p, tftp_opt->str_ptr,tftp_opt->str_len)) { + buffersize -= tftp_opt->str_len;...
2009 Aug 08
0
[PATCH] core:PXELINUX: fix the OACK option parsing bug.
...*dst++ = *src++ | 0x20; + if (!buffersize) + goto done; /* found no final null */ + } + + /* + * Parse option pointed to by options; guaranteed to be null-terminated + */ + p = options; tftp_opt = tftp_options; for (i = 0; i < tftp_opts; i++) { if (!strncmp(p, tftp_opt->str_ptr,tftp_opt->str_len)) -- 1.5.6.rc0 -- regards liu Aleaxander
2013 Dec 01
0
[PATCH] core: Bad read of file size over TFTP
...b/core/fs/pxe/tftp.c index 1f374a3..446da63 100644 --- a/core/fs/pxe/tftp.c +++ b/core/fs/pxe/tftp.c @@ -8,27 +8,12 @@ const uint8_t TimeoutTable[] = { 2, 2, 3, 3, 4, 5, 6, 7, 9, 10, 12, 15, 18, 21, 26, 31, 37, 44, 53, 64, 77, 92, 110, 132, 159, 191, 229, 255, 255, 255, 255, 0 }; -struct tftp_options { - const char *str_ptr; /* string pointer */ - size_t offset; /* offset into socket structre */ -}; struct tftp_packet { uint16_t opcode; uint16_t serial; char data[]; }; -#define IFIELD(x) offsetof(struct inode, x) -#define PFIELD(x) (offsetof(struct inod...