Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GNU CVS
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirabilos
GNU CVS
Commits
4b77426a
Commit
4b77426a
authored
14 years ago
by
scjones
Browse files
Options
Downloads
Patches
Plain Diff
* gpg.c (parse_signature_subpacket): Correct spout->raw memory
allocation. (Reported by David Taylor <dtaylor@emc.com>.)
parent
85261fcb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ChangeLog
+6
-0
6 additions, 0 deletions
src/ChangeLog
src/gpg.c
+3
-3
3 additions, 3 deletions
src/gpg.c
with
9 additions
and
3 deletions
src/ChangeLog
+
6
−
0
View file @
4b77426a
2011-03-30 Larry Jones <lawrence.jones@siemens.com>
* gpg.c (parse_signature_subpacket): Correct spout->raw memory
allocation.
(Reported by David Taylor <dtaylor@emc.com>.)
2010-10-21 Larry Jones <lawrence.jones@siemens.com>
2010-10-21 Larry Jones <lawrence.jones@siemens.com>
* rcs.c (apply_rcs_changes): Correct deltatext position sanity
* rcs.c (apply_rcs_changes): Correct deltatext position sanity
...
...
This diff is collapsed.
Click to expand it.
src/gpg.c
+
3
−
3
View file @
4b77426a
...
@@ -403,8 +403,8 @@ parse_signature_subpacket (struct buffer *bpin,
...
@@ -403,8 +403,8 @@ parse_signature_subpacket (struct buffer *bpin,
uint32_t
splen
;
uint32_t
splen
;
size_t
raw_idx
=
0
;
size_t
raw_idx
=
0
;
/* Enough to store the subpacket
length
. */
/* Enough to store the subpacket
header
. */
spout
->
raw
=
xmalloc
(
4
);
spout
->
raw
=
xmalloc
(
5
);
if
((
rc
=
read_u8
(
bpin
,
&
c
)))
if
((
rc
=
read_u8
(
bpin
,
&
c
)))
return
rc
;
return
rc
;
...
@@ -435,7 +435,7 @@ parse_signature_subpacket (struct buffer *bpin,
...
@@ -435,7 +435,7 @@ parse_signature_subpacket (struct buffer *bpin,
error
(
1
,
0
,
"Received zero length subpacket in OpenPGP signature."
);
error
(
1
,
0
,
"Received zero length subpacket in OpenPGP signature."
);
/* Allocate enough bytes for the rest of the subpacket. */
/* Allocate enough bytes for the rest of the subpacket. */
spout
->
raw
=
xrealloc
(
spout
->
raw
,
splen
);
spout
->
raw
=
xrealloc
(
spout
->
raw
,
raw_idx
+
splen
);
/* Read the subpacket type. */
/* Read the subpacket type. */
if
((
rc
=
read_u8
(
bpin
,
&
c
)))
if
((
rc
=
read_u8
(
bpin
,
&
c
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment