Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
afccf904
...
afccf904c42d5ee7d71efd29517a4d76e2d8d28c
authored
2005-05-13 09:39:57 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(header_get_field_name): Fix buffer overflow (IDEF0957).
1 parent
1917d2ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
mailbox/header.c
mailbox/header.c
View file @
afccf90
...
...
@@ -710,7 +710,7 @@ header_get_field_name (header_t header, size_t num, char *buf,
{
/* save one for the null */
--
buflen
;
len
=
(
len
>
buflen
)
?
len
:
len
;
len
=
(
len
>
buflen
)
?
buf
len
:
len
;
memcpy
(
buf
,
header
->
hdr
[
num
].
fn
,
len
);
buf
[
len
]
=
'\0'
;
}
...
...
Please
register
or
sign in
to post a comment