Bug 570744 - LFS: LfsPointer parsing can fail
Summary: LFS: LfsPointer parsing can fail
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 5.10   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 5.11   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-29 06:11 EST by Thomas Wolf CLA
Modified: 2021-01-31 06:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wolf CLA 2021-01-29 06:11:12 EST
See https://www.eclipse.org/forums/index.php/t/1106764/ .

I bet what happened there is that a C source with a like

  size_t
  some_function(void* ptr);

was tried to be parsed as a LFS pointer :-)

LfsPointer.parseLfsPointer() needs to do better validations.
Comment 1 Eclipse Genie CLA 2021-01-29 06:22:51 EST
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/175494