1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 3529dd8bb5
agent: Fix length test in sshcontrol parser.
* agent/command-ssh.c (ssh_search_control_file): Check S before
upcasing it.
--

In contradiction to the comment we did not check the length of HEXGRIP
and thus the GPG_ERR_INV_LENGTH was never triggered.

Detected by Stack 0.3:

  bug: anti-simplify
  model: |
    %cmp8 = icmp ne i32 %i.0, 40, !dbg !986
    -->  false
  stack:
    - /home/wk/s/gnupg/agent/command-ssh.c:1226:0
  ncore: 2
  core:
    - /home/wk/s/gnupg/agent/command-ssh.c:1225:0
      - buffer overflow
    - /home/wk/s/gnupg/agent/command-ssh.c:1225:0
      - buffer overflow
2015-03-15 13:04:48 +01:00
..
2014-09-17 15:12:08 +02:00
2014-12-02 14:13:53 +01:00
2014-12-22 09:27:00 +09:00
2015-03-15 12:59:17 +01:00
2014-11-11 10:13:10 +01:00
2014-12-02 14:13:53 +01:00
2015-03-09 11:00:03 +09:00
2007-07-04 19:49:40 +00:00
2013-11-18 14:09:47 +01:00
2007-07-04 19:49:40 +00:00