Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
libgit2.6334
libgit2-empty-lines-as-errors.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libgit2-empty-lines-as-errors.patch of Package libgit2.6334
Index: libgit2-0.22.1/src/transports/smart_pkt.c =================================================================== --- libgit2-0.22.1.orig/src/transports/smart_pkt.c +++ libgit2-0.22.1/src/transports/smart_pkt.c @@ -393,12 +393,13 @@ int git_pkt_parse_line( line += PKT_LEN_SIZE; /* - * TODO: How do we deal with empty lines? Try again? with the next - * line? + * The Git protocol does not specify empty lines as part + * of the protocol. Not knowing what to do with an empty + * line, we should return an error upon hitting one. */ if (len == PKT_LEN_SIZE) { - *out = line; - return 0; + giterr_set_str(GITERR_NET, "Invalid empty packet"); + return GIT_ERROR; } if (len == 0) { /* Flush pkt */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor