Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
7cba04f6
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
You need to sign in or sign up before continuing.
提交
7cba04f6
编写于
8月 01, 2009
作者:
B
Blue Swirl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More NULL pointer fixes
Signed-off-by:
N
Blue Swirl
<
blauwirbel@gmail.com
>
上级
660f11be
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
13 addition
and
11 deletion
+13
-11
bsd-user/bsdload.c
bsd-user/bsdload.c
+1
-1
bsd-user/elfload.c
bsd-user/elfload.c
+1
-1
linux-user/elfload.c
linux-user/elfload.c
+1
-1
linux-user/linuxload.c
linux-user/linuxload.c
+1
-1
qemu-char.c
qemu-char.c
+2
-2
slirp/tcp_timer.c
slirp/tcp_timer.c
+6
-4
vnc_keysym.h
vnc_keysym.h
+1
-1
未找到文件。
bsd-user/bsdload.c
浏览文件 @
7cba04f6
...
@@ -163,7 +163,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,
...
@@ -163,7 +163,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,
bprm
.
p
=
TARGET_PAGE_SIZE
*
MAX_ARG_PAGES
-
sizeof
(
unsigned
int
);
bprm
.
p
=
TARGET_PAGE_SIZE
*
MAX_ARG_PAGES
-
sizeof
(
unsigned
int
);
for
(
i
=
0
;
i
<
MAX_ARG_PAGES
;
i
++
)
/* clear page-table */
for
(
i
=
0
;
i
<
MAX_ARG_PAGES
;
i
++
)
/* clear page-table */
bprm
.
page
[
i
]
=
0
;
bprm
.
page
[
i
]
=
NULL
;
retval
=
open
(
filename
,
O_RDONLY
);
retval
=
open
(
filename
,
O_RDONLY
);
if
(
retval
<
0
)
if
(
retval
<
0
)
return
retval
;
return
retval
;
...
...
bsd-user/elfload.c
浏览文件 @
7cba04f6
...
@@ -1014,7 +1014,7 @@ static const char *lookup_symbolxx(struct syminfo *s, target_ulong orig_addr)
...
@@ -1014,7 +1014,7 @@ static const char *lookup_symbolxx(struct syminfo *s, target_ulong orig_addr)
key
.
st_value
=
orig_addr
;
key
.
st_value
=
orig_addr
;
sym
=
bsearch
(
&
key
,
syms
,
s
->
disas_num_syms
,
sizeof
(
*
syms
),
symfind
);
sym
=
bsearch
(
&
key
,
syms
,
s
->
disas_num_syms
,
sizeof
(
*
syms
),
symfind
);
if
(
sym
!=
0
)
{
if
(
sym
!=
NULL
)
{
return
s
->
disas_strtab
+
sym
->
st_name
;
return
s
->
disas_strtab
+
sym
->
st_name
;
}
}
...
...
linux-user/elfload.c
浏览文件 @
7cba04f6
...
@@ -1220,7 +1220,7 @@ static const char *lookup_symbolxx(struct syminfo *s, target_ulong orig_addr)
...
@@ -1220,7 +1220,7 @@ static const char *lookup_symbolxx(struct syminfo *s, target_ulong orig_addr)
key
.
st_value
=
orig_addr
;
key
.
st_value
=
orig_addr
;
sym
=
bsearch
(
&
key
,
syms
,
s
->
disas_num_syms
,
sizeof
(
*
syms
),
symfind
);
sym
=
bsearch
(
&
key
,
syms
,
s
->
disas_num_syms
,
sizeof
(
*
syms
),
symfind
);
if
(
sym
!=
0
)
{
if
(
sym
!=
NULL
)
{
return
s
->
disas_strtab
+
sym
->
st_name
;
return
s
->
disas_strtab
+
sym
->
st_name
;
}
}
...
...
linux-user/linuxload.c
浏览文件 @
7cba04f6
...
@@ -165,7 +165,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,
...
@@ -165,7 +165,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,
bprm
->
p
=
TARGET_PAGE_SIZE
*
MAX_ARG_PAGES
-
sizeof
(
unsigned
int
);
bprm
->
p
=
TARGET_PAGE_SIZE
*
MAX_ARG_PAGES
-
sizeof
(
unsigned
int
);
for
(
i
=
0
;
i
<
MAX_ARG_PAGES
;
i
++
)
/* clear page-table */
for
(
i
=
0
;
i
<
MAX_ARG_PAGES
;
i
++
)
/* clear page-table */
bprm
->
page
[
i
]
=
0
;
bprm
->
page
[
i
]
=
NULL
;
retval
=
open
(
filename
,
O_RDONLY
);
retval
=
open
(
filename
,
O_RDONLY
);
if
(
retval
<
0
)
if
(
retval
<
0
)
return
retval
;
return
retval
;
...
...
qemu-char.c
浏览文件 @
7cba04f6
...
@@ -1947,7 +1947,7 @@ static void unix_process_msgfd(CharDriverState *chr, struct msghdr *msg)
...
@@ -1947,7 +1947,7 @@ static void unix_process_msgfd(CharDriverState *chr, struct msghdr *msg)
static
ssize_t
tcp_chr_recv
(
CharDriverState
*
chr
,
char
*
buf
,
size_t
len
)
static
ssize_t
tcp_chr_recv
(
CharDriverState
*
chr
,
char
*
buf
,
size_t
len
)
{
{
TCPCharDriver
*
s
=
chr
->
opaque
;
TCPCharDriver
*
s
=
chr
->
opaque
;
struct
msghdr
msg
=
{
0
,
};
struct
msghdr
msg
=
{
NULL
,
};
struct
iovec
iov
[
1
];
struct
iovec
iov
[
1
];
union
{
union
{
struct
cmsghdr
cmsg
;
struct
cmsghdr
cmsg
;
...
@@ -2212,7 +2212,7 @@ CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*i
...
@@ -2212,7 +2212,7 @@ CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*i
CharDriverState
*
chr
;
CharDriverState
*
chr
;
if
(
!
strcmp
(
filename
,
"vc"
))
{
if
(
!
strcmp
(
filename
,
"vc"
))
{
chr
=
text_console_init
(
0
);
chr
=
text_console_init
(
NULL
);
}
else
}
else
if
(
strstart
(
filename
,
"vc:"
,
&
p
))
{
if
(
strstart
(
filename
,
"vc:"
,
&
p
))
{
chr
=
text_console_init
(
p
);
chr
=
text_console_init
(
p
);
...
...
slirp/tcp_timer.c
浏览文件 @
7cba04f6
...
@@ -74,13 +74,15 @@ tcp_slowtimo(Slirp *slirp)
...
@@ -74,13 +74,15 @@ tcp_slowtimo(Slirp *slirp)
* Search through tcb's and update active timers.
* Search through tcb's and update active timers.
*/
*/
ip
=
slirp
->
tcb
.
so_next
;
ip
=
slirp
->
tcb
.
so_next
;
if
(
ip
==
0
)
if
(
ip
==
NULL
)
{
return
;
return
;
}
for
(;
ip
!=
&
slirp
->
tcb
;
ip
=
ipnxt
)
{
for
(;
ip
!=
&
slirp
->
tcb
;
ip
=
ipnxt
)
{
ipnxt
=
ip
->
so_next
;
ipnxt
=
ip
->
so_next
;
tp
=
sototcpcb
(
ip
);
tp
=
sototcpcb
(
ip
);
if
(
tp
==
0
)
if
(
tp
==
NULL
)
{
continue
;
continue
;
}
for
(
i
=
0
;
i
<
TCPT_NTIMERS
;
i
++
)
{
for
(
i
=
0
;
i
<
TCPT_NTIMERS
;
i
++
)
{
if
(
tp
->
t_timer
[
i
]
&&
--
tp
->
t_timer
[
i
]
==
0
)
{
if
(
tp
->
t_timer
[
i
]
&&
--
tp
->
t_timer
[
i
]
==
0
)
{
tcp_timers
(
tp
,
i
);
tcp_timers
(
tp
,
i
);
...
...
vnc_keysym.h
浏览文件 @
7cba04f6
...
@@ -320,5 +320,5 @@ static const name2keysym_t name2keysym[]={
...
@@ -320,5 +320,5 @@ static const name2keysym_t name2keysym[]={
{
"Katakana_Real"
,
0xff25
},
{
"Katakana_Real"
,
0xff25
},
{
"Eisu_toggle"
,
0xff30
},
{
"Eisu_toggle"
,
0xff30
},
{
0
,
0
},
{
NULL
,
0
},
};
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录