Menu

#2781 ntfd: Incorrect byte counting in decode

5.18.04
fixed
nobody
None
defect
ntf
d
minor
False
2018-02-13
2018-02-07
No

static uint32_t decode_reader_info(NCS_UBAID uba, uint32_t readerId,
uint8_t hasFilter, uint32_t fIter, bool firstRead)
{
uint8_t
p8;
uint8_t local_data[9];
...

It should be local_data[10], instead of [9]

P/S: Currently this bug does not cause a crash, since the remaining bytes to decode is greater than 10
(refer to sysf_data_at_start()),

Related

Wiki: ChangeLog-5.18.04

Discussion

  • Minh Hon Chau

    Minh Hon Chau - 2018-02-12
    • status: accepted --> review
     
  • Minh Hon Chau

    Minh Hon Chau - 2018-02-13
    • status: review --> fixed
    • assigned_to: Minh Hon Chau --> nobody
     

Log in to post a comment.