Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
34b32053
Commit
34b32053
authored
Nov 25, 2016
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential use of uninitialized values
parent
e781a0c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
src/pack.c
+3
-1
src/patch_generate.c
+1
-1
src/transports/smart_protocol.c
+1
-1
No files found.
src/pack.c
View file @
34b32053
...
...
@@ -509,8 +509,10 @@ int git_packfile_resolve_header(
git_packfile_stream_free
(
&
stream
);
if
(
error
<
0
)
return
error
;
}
else
}
else
{
*
size_p
=
size
;
base_offset
=
0
;
}
while
(
type
==
GIT_OBJ_OFS_DELTA
||
type
==
GIT_OBJ_REF_DELTA
)
{
curpos
=
base_offset
;
...
...
src/patch_generate.c
View file @
34b32053
...
...
@@ -284,7 +284,7 @@ static int create_binary(
size_t
b_datalen
)
{
git_buf
deflate
=
GIT_BUF_INIT
,
delta
=
GIT_BUF_INIT
;
size_t
delta_data_len
;
size_t
delta_data_len
=
0
;
int
error
;
/* The git_delta function accepts unsigned long only */
...
...
src/transports/smart_protocol.c
View file @
34b32053
...
...
@@ -728,7 +728,7 @@ static int add_push_report_pkt(git_push *push, git_pkt *pkt)
static
int
add_push_report_sideband_pkt
(
git_push
*
push
,
git_pkt_data
*
data_pkt
,
git_buf
*
data_pkt_buf
)
{
git_pkt
*
pkt
;
const
char
*
line
,
*
line_end
;
const
char
*
line
,
*
line_end
=
NULL
;
size_t
line_len
;
int
error
;
int
reading_from_buf
=
data_pkt_buf
->
size
>
0
;
...
...
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