Skip to content

Crashes on St. Tib's day #13

@TobiX

Description

@TobiX

Well, okay, only with "invalid" format string, but this

ddate "+%}%{" 29 2 2012

creates an endless loop (or anything else resulting in tib_end < tib_start like %A%e).

suggestions:

in line 262:

if(tib_start>=0)    tib_end=i+1;

after the first loop, add a sanity check:

if (tib_end < tib_start) tib_end = tib_start + 1;

This will probably fix half of the only bug documented in the man page ;)

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