浏览代码

Merge remote-tracking branch 'origin/hardened/current/tmpfs_extattr' into hardened/current/master

hardened/current/safestack
Shawn Webb 3 个月前
父节点
当前提交
e080c97f85
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      sys/fs/tmpfs/tmpfs_vnops.c

+ 4
- 1
sys/fs/tmpfs/tmpfs_vnops.c 查看文件

@@ -1780,7 +1780,7 @@ tmpfs_extattr_list(struct vnode *vp, int attrnamespace, struct uio *uio,

namelen = strlen(attr->tele_attrname);
if (size) {
*size += namelen + namelen8;
*size += namelen + sizeof(namelen8);
} else if (uio != NULL) {
namelen8 = namelen;
error = uiomove(&namelen8, sizeof(namelen8), uio);
@@ -1788,6 +1788,9 @@ tmpfs_extattr_list(struct vnode *vp, int attrnamespace, struct uio *uio,
break;
}
error = uiomove(attr->tele_attrname, namelen, uio);
if (error) {
break;
}
}

if (error) {


正在加载...
取消
保存