DragonFlyBSD Kernel Audit
DF-0871 / fix_apply.log
← back to finding ↓ download raw
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/sys/vfs/ntfs/ntfs_vfsops.c b/sys/vfs/ntfs/ntfs_vfsops.c
|index 0000000..1111111
--------------------------
File to patch: 
No file found--skip this patch? [y] 
Skipping patch...
Hunk #1 ignored at 457.
1 out of 1 hunks ignored--saving rejects to Oops.rej
done
				goto out1;
			j = 0;
			do {
				ntmp->ntm_ad[i].ad_name[j] = ad.ad_name[j];
			} while(ad.ad_name[j++] &&
			    j < (int)sizeof(ntmp->ntm_ad[i].ad_name));
			/* DF-0871: force NUL-termination within the fixed-size buffer
			 * so the wchar->char walk can never overrun ntvattrdef.ad_name. */
			ntmp->ntm_ad[i].ad_name[sizeof(ntmp->ntm_ad[i].ad_name) - 1] = '\0';
			ntmp->ntm_ad[i].ad_namelen = j - 1;
			ntmp->ntm_ad[i].ad_type = ad.ad_type;
		}