search for: susp_rr_get_nm

Displaying 2 results from an estimated 2 matches for "susp_rr_get_nm".

2013 Apr 25
1
[syslinux:rockridge] iso9660.c did not copy terminating 0 of Rock Ridge name
...660/iso9660.c b/core/fs/iso9660/iso9660.c > index 0f7b3d2..492adc6 100644 > --- a/core/fs/iso9660/iso9660.c > +++ b/core/fs/iso9660/iso9660.c > @@ -240,7 +240,7 @@ static int iso_readdir(struct file *file, struct dirent *dirent) > /* Try to get Rock Ridge name */ > ret = susp_rr_get_nm(fs, (char *) de, &rr_name, &name_len); > if (ret > 0) { > - memcpy(dirent->d_name, rr_name, name_len); > + memcpy(dirent->d_name, rr_name, name_len + 1); memcpy(dirent->d_name, rr_name, name_len); dirent->d_name[name_len] = '\0'; ? -hpa
2013 Mar 31
1
Rock Ridge for core/fs/iso9660
...in susp_rr.c can later be removed, when no further tests in libisofs are expected.) Most of the code is in two new source files: core/fs/iso9660/susp_rr.h ~ 4000 bytes core/fs/iso9660/susp_rr.c ~ 15000 bytes Opinions regarding coding style and license are welcome. I inserted two calls of susp_rr_get_nm() into iso9660/iso9660.c, so that hopefully Rock Ridge names will be processed in functions iso_find_entry() and iso_readdir(). The old ISO name processing is supposed to still work as fallback. Function iso_fs_init() now ends by a call of the Rock Ridge detector susp_rr_check_signatures(). struc...