Skip to content

Using -i and -C causes segmentation fault #39

Description

@ehwilliamson

If CREATE is suppressed, field names are never created:

pgdbf/src/pgdbf.c

Lines 476 to 477 in 4e84775

if(optusecreatetable) {
fieldnames = calloc(fieldcount, MAXCOLUMNNAMESIZE);

Those field names are used in the ignore code:

if(strcmp(fieldnames[fieldnum],ignorefields[i].field) == 0)

Using -i with -C (or -u) cause a segfault when strcmp tries to read a nonexistent fieldname.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions