Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Issue 1346853002: [app][inetsrv] add tftp server. (Closed)

Created:
5 years, 3 months ago by cpu_(ooo_6.6-7.5)
Modified:
5 years, 2 months ago
Reviewers:
cja
Base URL:
https://github.com/travisg/lk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[app][inetsrv] add tftp server. Only allows writting files. Needs a per-file handler to be wired and provisionally has a test handler wired to "tftp_test.txt" which prints the crc32 of the complete file pushed via tftp -i 192.169.0.xx tftp_test.txt Some error conditions are yet to be fully handled. BUG=none

Patch Set 1 #

Total comments: 42

Patch Set 2 : review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -10 lines) Patch
M app/inetsrv/inetsrv.c View 1 2 chunks +2 lines, -0 lines 0 comments Download
M app/inetsrv/rules.mk View 1 1 chunk +2 lines, -0 lines 0 comments Download
A + lib/tftp/include/lib/tftp.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
A + lib/tftp/rules.mk View 1 1 chunk +6 lines, -5 lines 0 comments Download
A lib/tftp/tftp.c View 1 1 chunk +288 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/1346853002/diff/1/app/inetsrv/tftp.c File app/inetsrv/tftp.c (right): https://codereview.chromium.org/1346853002/diff/1/app/inetsrv/tftp.c#newcode37 app/inetsrv/tftp.c:37: #define TFTP_BUFSIZE 512 remove https://codereview.chromium.org/1346853002/diff/1/app/inetsrv/tftp.c#newcode63 app/inetsrv/tftp.c:63: // Represents tftp ...
5 years, 3 months ago (2015-09-16 18:04:11 UTC) #1
cja
Mostly nits around TRACEF and checking argument parameters. https://codereview.chromium.org/1346853002/diff/1/app/inetsrv/tftp.c File app/inetsrv/tftp.c (right): https://codereview.chromium.org/1346853002/diff/1/app/inetsrv/tftp.c#newcode85 app/inetsrv/tftp.c:85: TRACEF("send_ack ...
5 years, 3 months ago (2015-09-16 21:19:42 UTC) #3
cpu_(ooo_6.6-7.5)
changes made. https://codereview.chromium.org/1346853002/diff/1/app/inetsrv/tftp.c File app/inetsrv/tftp.c (right): https://codereview.chromium.org/1346853002/diff/1/app/inetsrv/tftp.c#newcode85 app/inetsrv/tftp.c:85: TRACEF("send_ack failed: %d\n", st); On 2015/09/16 21:19:41, ...
5 years, 3 months ago (2015-09-17 01:22:31 UTC) #4
cja
5 years, 3 months ago (2015-09-17 18:11:56 UTC) #5
https://codereview.chromium.org/1346853002/diff/1/app/inetsrv/tftp.c
File app/inetsrv/tftp.c (right):

https://codereview.chromium.org/1346853002/diff/1/app/inetsrv/tftp.c#newcode109
app/inetsrv/tftp.c:109: {
On 2015/09/17 01:22:31, cpu wrote:
> On 2015/09/16 21:19:41, cja wrote:
> > What if data is NULL? It's dereferenced below with no check.
> 
> it will come with len == 0 ?

Perhaps it's a personal preference, but I'd still check that the pointer is
valid when passed in.

Powered by Google App Engine
This is Rietveld 408576698