Title: Configuration parsing: Incorrect parsing of section header · Issue #5072 · libgit2/libgit2 · GitHub
Open Graph Title: Configuration parsing: Incorrect parsing of section header · Issue #5072 · libgit2/libgit2
X Title: Configuration parsing: Incorrect parsing of section header · Issue #5072 · libgit2/libgit2
Description: Reproduction steps The parser skips any character between whitespace and " in between the section name and the subsection name. Consider configuration file [x z "y"] a = 1 Expected behavior Error. D:\repository>git config --list fatal: b...
Open Graph Description: Reproduction steps The parser skips any character between whitespace and " in between the section name and the subsection name. Consider configuration file [x z "y"] a = 1 Expected behavior Error. ...
X Description: Reproduction steps The parser skips any character between whitespace and " in between the section name and the subsection name. Consider configuration file [x z "y"] a = 1 Expected b...
Opengraph URL: https://github.com/libgit2/libgit2/issues/5072
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Configuration parsing: Incorrect parsing of section header","articleBody":"### Reproduction steps\r\n\r\nThe parser skips any character between whitespace and `\"` in between the section name and the subsection name.\r\n\r\nConsider configuration file \r\n```\r\n[x z \"y\"] a = 1\r\n```\r\n\r\n### Expected behavior\r\n\r\nError.\r\n\r\n```\r\nD:\\repository\u003egit config --list\r\nfatal: bad config line 1 in file .git/config\r\n```\r\n\r\n### Actual behavior\r\n\r\nlibgit2 reads the configuration without reporting any error.\r\n\r\n### Version of libgit2 (release number or SHA1)\r\n\r\na904fc6d12ffc20aa1a238a78000921494222e89\r\n\r\n### Operating system(s) tested\r\n\r\nWindows","author":{"url":"https://github.com/tmat","@type":"Person","name":"tmat"},"datePublished":"2019-05-15T17:39:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5072/libgit2/issues/5072"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c8394198-b218-f706-67a3-a76da0d68f98 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F50:26E27B:2A22698:3A46DD5:6A5EA40F |
| html-safe-nonce | 6dfe916a04eef93a5ad6c66553842b3530addbd1e57061e5ae6c40755ed68b35 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjUwOjI2RTI3QjoyQTIyNjk4OjNBNDZERDU6NkE1RUE0MEYiLCJ2aXNpdG9yX2lkIjoiMjAwNzM0Njk4MDEwOTMyOTQyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c9f57ff46797e0ba5d093d4f218f20b0d8bfcc9266280bbd766ce633ed6ca4e1 |
| hovercard-subject-tag | issue:444562385 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2/5072/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54286b3a40aeb4909b480a3fbc23dda5a858a53b1ce6e9446614308f9c312fbb/libgit2/libgit2/issues/5072 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54286b3a40aeb4909b480a3fbc23dda5a858a53b1ce6e9446614308f9c312fbb/libgit2/libgit2/issues/5072 |
| og:image:alt | Reproduction steps The parser skips any character between whitespace and " in between the section name and the subsection name. Consider configuration file [x z "y"] a = 1 Expected behavior Error. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tmat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c7e31acb6a895494e518b880f5ccf39604f7fa9a8f2f3c64145efc3b776256d |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 901662 |
| octolytics-dimension-repository_nwo | libgit2/libgit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 901662 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d2ac9bdd71d5f53f2b731c9330677e38624e301 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width