Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
a8ff1805
Commit
a8ff1805
authored
Nov 10, 2002
by
Niels Möller
Browse files
(sexp_vformat): Abort if format string contains
unhandled characters. Rev: src/nettle/sexp-format.c:1.3
parent
75689999
Changes
1
Hide whitespace changes
Inline
Side-by-side
sexp-format.c
View file @
a8ff1805
/* sexp-
outpu
t.c
/* sexp-
forma
t.c
*
* Writing s-expressions.
*/
...
...
@@ -101,6 +101,9 @@ sexp_vformat(struct nettle_buffer *buffer, const char *format, va_list args)
for
(;;)
switch
(
*
format
++
)
{
default:
abort
();
case
'\0'
:
assert
(
!
nesting
);
...
...
@@ -126,6 +129,9 @@ sexp_vformat(struct nettle_buffer *buffer, const char *format, va_list args)
case
'%'
:
switch
(
*
format
++
)
{
default:
abort
();
case
'z'
:
{
const
char
*
s
=
va_arg
(
args
,
const
char
*
);
...
...
@@ -242,8 +248,6 @@ sexp_vformat(struct nettle_buffer *buffer, const char *format, va_list args)
#endif
/* ! HAVE_LIBGMP */
break
;
}
default:
abort
();
}
}
}
...
...
Write
Preview
Supports
Markdown
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