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
2a707d0e
Commit
2a707d0e
authored
Jan 22, 2013
by
Scott J. Goldman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Handle packed peeled objects without trailing newlines"
This reverts commit
28b1cdf3
. //cc #1262 #1267
parent
148c786c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/refs.c
+3
-6
No files found.
src/refs.c
View file @
2a707d0e
...
...
@@ -328,7 +328,7 @@ static int packed_parse_peel(
if
(
git__prefixcmp
(
tag_ref
->
name
,
GIT_REFS_TAGS_DIR
)
!=
0
)
goto
corrupt
;
if
(
buffer
+
GIT_OID_HEXSZ
>
buffer_end
)
if
(
buffer
+
GIT_OID_HEXSZ
>
=
buffer_end
)
goto
corrupt
;
/* Is this a valid object id? */
...
...
@@ -339,13 +339,10 @@ static int packed_parse_peel(
if
(
*
buffer
==
'\r'
)
buffer
++
;
if
(
*
buffer
==
'\n'
)
buffer
++
;
if
(
buffer
!=
buffer_end
)
if
(
*
buffer
!=
'\n'
)
goto
corrupt
;
*
buffer_out
=
buffer
;
*
buffer_out
=
buffer
+
1
;
return
0
;
corrupt:
...
...
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