Skip to content

Instantly share code, notes, and snippets.

@YourButterfly
Created January 23, 2019 08:20
Show Gist options
  • Save YourButterfly/af00fff87dd0cf68c4b532a16410b4c9 to your computer and use it in GitHub Desktop.
Save YourButterfly/af00fff87dd0cf68c4b532a16410b4c9 to your computer and use it in GitHub Desktop.
CVE-2019-6460.not.patch
--- ./recutils-1.8/utils/csv2rec.c 2019-01-23 16:06:29.840024748 +0800
+++ ./recutils-1.8.patch/utils/csv2rec.c 2019-01-23 16:07:09.538200790 +0800
@@ -246,7 +246,8 @@ field_cb (void *s, size_t len, void *dat
if (!csv2rec_omit_empty || (strlen(str) > 0))
{
- if (ctx->num_fields > ctx->num_field_names)
+ /* CVE-2019-6460 patch ,not sure, maybe fixed */
+ if (ctx->num_fields >= ctx->num_field_names)
{
char *source = csv2rec_csv_file;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment