09 Feb, 2013

1 commit

  • If gb_len is less than 3 it would cause an integer underflow and
    possibly memory corruption in nfc_llcp_parse_gb_tlv().

    I removed the old test for gb_len == 0. I also removed the test for
    ->remote_gb == NULL. It's not possible for ->remote_gb to be NULL and
    we have already dereferenced ->remote_gb_len so it's too late to test.

    The old test return -ENODEV but my test returns -EINVAL.

    Signed-off-by: Dan Carpenter
    Signed-off-by: John W. Linville

    Dan Carpenter
     

11 Jan, 2013

2 commits


10 Jan, 2013

9 commits


14 Dec, 2012

1 commit


07 Dec, 2012

1 commit


29 Nov, 2012

1 commit


22 Nov, 2012

1 commit


20 Nov, 2012

9 commits


29 Oct, 2012

1 commit

  • NFC_CMD_LLC_GET_PARAMS: request LTO, RW, and MIUX parameters for a device

    NFC_CMD_LLC_SET_PARAMS: set one or more of LTO, RW, and MIUX parameters for
    a device. LTO must be set before the link is up otherwise -EINPROGRESS is
    returned. RW and MIUX can be set at anytime and will be passed in subsequent
    CONNECT and CC messages. If one of the passed parameters is wrong none is
    set and -EINVAL is returned.

    Signed-off-by: Thierry Escande
    Signed-off-by: Samuel Ortiz

    Thierry Escande
     

27 Oct, 2012

14 commits