[RTEMS Project] #2964: fat: msdos_find_file_in_directory(..) doesn't reset LFN search appropriately

RTEMS trac trac at rtems.org
Wed Sep 6 10:01:51 UTC 2017


#2964: fat: msdos_find_file_in_directory(..) doesn't reset LFN search
appropriately
------------------------+------------------------------
 Reporter:  slemstick   |       Owner:  Sebastian Huber
     Type:  defect      |      Status:  assigned
 Priority:  normal      |   Milestone:  4.12.0
Component:  filesystem  |     Version:  4.12
 Severity:  normal      |  Resolution:
 Keywords:              |
------------------------+------------------------------

Comment (by Sebastian Huber):

 It looks like a bug, but I am not able to write a test case for this.

 The msdos_set_first_char4file_name() sets the first byte of each directory
 entry to 0xe5. How did you end up with

  * 1-> old LFN end entry n
  * 2-> old LFN end entry n - 1
  * 3-> old SHORT entry freed with byte[0] = 0xe5

 ?

 Do you use a removable media and delete the file with another operating
 system or via the short file name?

--
Ticket URL: <http://devel.rtems.org/ticket/2964#comment:7>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list