[MDEV-8317] [PATCH] Possible overflowing a buffer in strncat Created: 2015-06-14 Updated: 2015-11-08 Resolved: 2015-11-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | 10.1.5 |
| Fix Version/s: | 10.0.23, 10.1.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michal Hrusecky | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Our static analysis tool complained about possible buffer overflow. Haven't checked how probable it is to happen, but it would be good to fix it either attached way or to replace stncats with strncpys. |
| Comments |
| Comment by Elena Stepanova [ 2015-06-14 ] |
|
bertrandop, |
| Comment by Olivier Bertrand [ 2015-11-08 ] |
|
Thanks for raising this problem and providing patches. |
| Comment by Olivier Bertrand [ 2015-11-08 ] |
|
Why am I only aware today of a problem raised last june? |