mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
chmod_extended and fchmod_extended: handle NULL xsecurity argument correctly.
Fixes #247510. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11412
This commit is contained in:
parent
1a187bd147
commit
bee9b6b321
@ -2041,8 +2041,10 @@ PRE(fchmod_extended)
|
||||
/* DDD: relative to the xnu sources (kauth_copyinfilesec), this
|
||||
is just way wrong. [The trouble is with the size, which depends on a
|
||||
non-trival kernel computation] */
|
||||
PRE_MEM_READ( "fchmod_extended(xsecurity)", ARG5,
|
||||
sizeof(struct vki_kauth_filesec) );
|
||||
if (ARG5) {
|
||||
PRE_MEM_READ( "fchmod_extended(xsecurity)", ARG5,
|
||||
sizeof(struct vki_kauth_filesec) );
|
||||
}
|
||||
}
|
||||
|
||||
PRE(chmod_extended)
|
||||
@ -2061,8 +2063,10 @@ PRE(chmod_extended)
|
||||
/* DDD: relative to the xnu sources (kauth_copyinfilesec), this
|
||||
is just way wrong. [The trouble is with the size, which depends on a
|
||||
non-trival kernel computation] */
|
||||
PRE_MEM_READ( "chmod_extended(xsecurity)", ARG5,
|
||||
sizeof(struct vki_kauth_filesec) );
|
||||
if (ARG5) {
|
||||
PRE_MEM_READ( "chmod_extended(xsecurity)", ARG5,
|
||||
sizeof(struct vki_kauth_filesec) );
|
||||
}
|
||||
}
|
||||
|
||||
PRE(open_extended)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user