Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150764352
D47879.id147401.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
617 B
Referenced Files
None
Subscribers
None
D47879.id147401.diff
View Options
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c
--- a/sys/fs/cd9660/cd9660_vnops.c
+++ b/sys/fs/cd9660/cd9660_vnops.c
@@ -758,6 +758,9 @@
/* NOTREACHED */
}
+_Static_assert(sizeof(struct ifid) <= sizeof(struct fid),
+ "struct ifid must be no larger than struct fid");
+
/*
* Vnode pointer to File handle
*/
diff --git a/sys/fs/cd9660/iso.h b/sys/fs/cd9660/iso.h
--- a/sys/fs/cd9660/iso.h
+++ b/sys/fs/cd9660/iso.h
@@ -267,7 +267,7 @@
u_short ifid_pad;
cd_ino_t ifid_ino;
long ifid_start;
-};
+} __packed;
#define VFSTOISOFS(mp) ((struct iso_mnt *)((mp)->mnt_data))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 9:56 PM (20 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30846526
Default Alt Text
D47879.id147401.diff (617 B)
Attached To
Mode
D47879: cd9660: Make sure that struct ifid fits in generic filehandle structure
Attached
Detach File
Event Timeline
Log In to Comment