Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
32bc641d
Commit
32bc641d
authored
Jul 06, 2016
by
danh-arm
Committed by
GitHub
Jul 06, 2016
Browse files
Merge pull request #657 from yatharth-arm/yk/genfw-1505
Fix `cert_create` tool for Segmentation fault
parents
6f511c47
f16db56a
Changes
1
Show whitespace changes
Inline
Side-by-side
tools/cert_create/src/main.c
View file @
32bc641d
...
@@ -428,9 +428,11 @@ int main(int argc, char *argv[])
...
@@ -428,9 +428,11 @@ int main(int argc, char *argv[])
*/
*/
switch
(
ext
->
type
)
{
switch
(
ext
->
type
)
{
case
EXT_TYPE_NVCOUNTER
:
case
EXT_TYPE_NVCOUNTER
:
if
(
ext
->
arg
)
{
nvctr
=
atoi
(
ext
->
arg
);
nvctr
=
atoi
(
ext
->
arg
);
CHECK_NULL
(
cert_ext
,
ext_new_nvcounter
(
ext_nid
,
CHECK_NULL
(
cert_ext
,
ext_new_nvcounter
(
ext_nid
,
EXT_CRIT
,
nvctr
));
EXT_CRIT
,
nvctr
));
}
break
;
break
;
case
EXT_TYPE_HASH
:
case
EXT_TYPE_HASH
:
if
(
ext
->
arg
==
NULL
)
{
if
(
ext
->
arg
==
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment