Try to get correct buffer size to avoid races (#53547)

* Try to get correct buffer size to avoid races

  fixes #51393

* fix test, mock buffer function since all is mocked
This commit is contained in:
Brian Coca 2019-03-14 11:04:56 -04:00 committed by GitHub
commit e280f2f7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 18 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- Attempt to avoid race condition based on incorrect buffer size assumptions