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
6cacd44b
Commit
6cacd44b
authored
Dec 12, 2012
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1136 from pclouds/tree-cache-counts
tree cache: loosen negative entry count check
parents
8d13035e
08f3d6ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/tree-cache.c
+1
-1
No files found.
src/tree-cache.c
View file @
6cacd44b
...
...
@@ -104,7 +104,7 @@ static int read_tree_internal(git_tree_cache **out,
tree
->
name
[
name_len
]
=
'\0'
;
/* Blank-terminated ASCII decimal number of entries in this tree */
if
(
git__strtol32
(
&
count
,
buffer
,
&
buffer
,
10
)
<
0
||
count
<
-
1
)
if
(
git__strtol32
(
&
count
,
buffer
,
&
buffer
,
10
)
<
0
)
goto
corrupted
;
tree
->
entries
=
count
;
...
...
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