#1110 Pair of escaped braces fails in password generator (KeePass 1.25)

KeePass_1.x
closed
nobody
None
5
2014-11-12
2013-04-15
alexanderino
No

KeePass 1.25's password generator malfunctions when an escaped opening and closing brace (curly bracket) are both used.

To reproduce, test the following pattern:

\{hhh\}

The result is empty, instead of something like {be4}.

Now try:

\{hhh\}-\{ddd

The part contained inside {hhh} vanishes, but the remainder of the pattern works.

Using only an escaped opening or closing brace works OK.

KeePass 2.x does not exhibit this bug.

Cheers,

Jason [alexanderino]

Discussion

  • alexanderino
    alexanderino
    2013-04-15

    Additional information: it seems that when an escaped opening brace is used, the generator ignores it, and other characters, until it reaches a closing brace (whether escaped or not).

    For example, the following pattern:

    \{h{8}\-h{4}\-\4h{3}\-[\8\9\a\b]h{3}\-h{12}\}
    

    provides the following output:

    -f780-4fe2-91b8-b61de2f8e6f2}
    -63ff-441c-997d-7b1e1bb23fa0}
    

    The ignored part of the pattern is \{h{8}.

     
  • Paul
    Paul
    2013-04-15

    Yes, this problem exists in V1.25 but not V2.22.

    cheers, Paul

     
  • Dominik Reichl
    Dominik Reichl
    2013-04-17

    Thanks for reporting this issue! I've fixed it now.

    Here's the latest 1.x development snapshot for testing:
    http://keepass.info/filepool/KeePass_130417b.zip

    Best regards,
    Dominik

     
  • Dominik Reichl
    Dominik Reichl
    2013-04-17

    • status: open --> closed
     
  • alexanderino
    alexanderino
    2013-04-18

    Snapshot 130417b works fine with all my custom patterns. It shall now replace my copy of the official 1.25 build.

    Thank you for the quick fix, Dominik :-)

    Cheers,

    Jason