Invalid memory read in dbGetAttributePart
Bug #1479330 reported by
Ambroz Bizjak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
EPICS Base | Status tracked in 7.0 | |||||
3.14 |
Fix Released
|
Undecided
|
Andrew Johnson | |||
3.15 |
Fix Released
|
Undecided
|
Andrew Johnson | |||
3.16 |
Fix Released
|
Low
|
Andrew Johnson | |||
7.0 |
Fix Released
|
Low
|
Andrew Johnson |
Bug Description
There is a possibility of an invalid memory read in dbGetAttributePart. The value of pname[nameLen] is taken before it is certain that there are at least nameLen (non-null) characters in pname (which is indicated by compare==0). I have found this with Address Sanitizer.
Patch is attached. With this fix I see no other ASan errors.
Related branches
Changed in epics-base: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → Andrew Johnson (anj) |
To post a comment you must log in.
3.14, 3.15 and 3.16 all appear to be affected.