]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r317200, r317201, r317216:
authorpfg <pfg@FreeBSD.org>
Thu, 4 May 2017 15:00:09 +0000 (15:00 +0000)
committerpfg <pfg@FreeBSD.org>
Thu, 4 May 2017 15:00:09 +0000 (15:00 +0000)
commit64bd1f9d3188cf93b4bac7f071981748ff394986
tree2cb6b355949105595f328c388a96b3eda570cfd2
parentf367a08e929a1fb8bab081d188e8e15afc379b7d
MFC r317200, r317201, r317216:
libthread_db: unsign map_len and use reallocarray(3).

Lengths are not negative, so map_len should be unsigned. Unsign the
corresponding indexes too and bring a small use of reallocarray(3).

Reorder the memset to be consistent with the reallocarray.
lib/libthread_db/libpthread_db.c
lib/libthread_db/libpthread_db.h