Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a697fe51
Commit
a697fe51
authored
Nov 13, 2006
by
Jesse Allen
Committed by
Alexandre Julliard
Nov 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: printf buffer overrun tests.
parent
5b75c869
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
printf.c
dlls/msvcrt/tests/printf.c
+12
-0
No files found.
dlls/msvcrt/tests/printf.c
View file @
a697fe51
...
@@ -187,6 +187,18 @@ static void test_sprintf( void )
...
@@ -187,6 +187,18 @@ static void test_sprintf( void )
r
=
sprintf
(
buffer
,
format
,(
LONGLONG
)
100
);
r
=
sprintf
(
buffer
,
format
,(
LONGLONG
)
100
);
ok
(
!
strcmp
(
buffer
,
"+00100 "
)
&&
r
==
8
,
"#-+ 08.5I64d failed: '%s'
\n
"
,
buffer
);
ok
(
!
strcmp
(
buffer
,
"+00100 "
)
&&
r
==
8
,
"#-+ 08.5I64d failed: '%s'
\n
"
,
buffer
);
format
=
"%.80I64d"
;
r
=
sprintf
(
buffer
,
format
,(
LONGLONG
)
1
);
ok
(
r
==
80
,
"%s format failed
\n
"
,
format
);
format
=
"% .80I64d"
;
r
=
sprintf
(
buffer
,
format
,(
LONGLONG
)
1
);
ok
(
r
==
81
,
"%s format failed
\n
"
,
format
);
format
=
"% .80d"
;
r
=
sprintf
(
buffer
,
format
,
1
);
ok
(
r
==
81
,
"%s format failed
\n
"
,
format
);
format
=
"%lld"
;
format
=
"%lld"
;
r
=
sprintf
(
buffer
,
format
,((
ULONGLONG
)
0xffffffff
)
*
0xffffffff
);
r
=
sprintf
(
buffer
,
format
,((
ULONGLONG
)
0xffffffff
)
*
0xffffffff
);
ok
(
!
strcmp
(
buffer
,
"1"
),
"Problem with
\"
ll
\"
interpretation
\n
"
);
ok
(
!
strcmp
(
buffer
,
"1"
),
"Problem with
\"
ll
\"
interpretation
\n
"
);
...
...
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