[Bug 1624] New: TFTPFS not parsing hostnames & paths correctly

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Jul 20 05:04:08 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1624

           Summary: TFTPFS not parsing hostnames & paths correctly
           Product: RTEMS
           Version: 4.10
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: filesystem
        AssignedTo: chrisj at rtems.org
        ReportedBy: angus.gratton at anu.edu.au


Created an attachment (id=899)
 --> (https://www.rtems.org/bugzilla/attachment.cgi?id=899)
Patch to fix TFTPFS on RTEMS 4.10

TFTPFS doesn't successfully parse paths correctly to hostname & file. Issue
seen in 4.10 and looks the same in CVS HEAD.

I'm using PowerPC MVME3100 board, although I think this problem is
non-board-specific. However, one bug will not be seen if strlen(NULL) is always
zero (this is an undefined result on RTEMS PowerPC.)

To reproduce, you can use the network-demos/tftpTest application and configure
it with non-BootP TFTP host and filename. No files will be successfully
requested.

I've attached a patch with the fixes that I think are necessary.

I also noticed a secondary issue: if you access files as /TFTP/BOOTP_HOST/ then
it looks like there may also be another problem parsing the file, because the
'cp1' variable is not set properly in tftpDriver.c. The patch includes a
one-line fix for that as well, although I haven't tested that particular case
myself.


Hth. Apologies for any bad formatting/deviant code style. Cheers - Angus

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list