Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Issue 2129753002: Prevent stack-buffer-overflow with address sanitizer (Closed)

Created:
4 years, 5 months ago by joachim
Modified:
4 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/deps/libsrtp@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Prevent stack-buffer-overflow with address sanitizer This is a backport of https://github.com/cisco/libsrtp/commit/da34bb7139e1ab7437e90afa039bde26d1e8d3cd Original description: ----- The value passed to srtp_aes_gcm_openssl_set_aad is not guarantied to be >= c->tag_len. Since the call to EVP_CIPHER_CTX_ctrl is a dummy call pass it a dummy tag that is large enough. ----- This was also found by "asan" trybots in https://codereview.webrtc.org/1528843005/ BUG=webrtc:5222 R=mattdr@webrtc.org, tommi@webrtc.org Committed: https://chromium.googlesource.com/chromium/deps/libsrtp/+/48bdd208dcdbb018c4a154cf260414dbdfabb86d

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M srtp/crypto/cipher/aes_gcm_ossl.c View 1 chunk +3 lines, -1 line 3 comments Download

Messages

Total messages: 18 (6 generated)
joachim
Ptal, this fixes the asan errors from https://codereview.webrtc.org/1528843005/ Is there a chance you can also ...
4 years, 5 months ago (2016-07-06 20:02:17 UTC) #2
mattdr-at-webrtc.org
On 2016/07/06 20:02:17, joachim wrote: > Ptal, this fixes the asan errors from https://codereview.webrtc.org/1528843005/ > ...
4 years, 5 months ago (2016-07-06 21:42:37 UTC) #3
joachim
On 2016/07/06 21:42:37, mattdr-at-webrtc.org wrote: > On 2016/07/06 20:02:17, joachim wrote: > > Ptal, this ...
4 years, 5 months ago (2016-07-06 21:56:22 UTC) #6
joachim
On 2016/07/06 21:56:22, joachim wrote: > On 2016/07/06 21:42:37, http://mattdr-at-webrtc.org wrote: > > On 2016/07/06 ...
4 years, 5 months ago (2016-07-18 10:37:55 UTC) #7
jiayl1
4 years, 5 months ago (2016-07-18 13:44:02 UTC) #9
joachim
On 2016/07/18 13:44:02, jiayl1 wrote: Tommi: friendly ping
4 years, 4 months ago (2016-07-26 07:33:29 UTC) #10
tommi
https://codereview.webrtc.org/2129753002/diff/1/srtp/crypto/cipher/aes_gcm_ossl.c File srtp/crypto/cipher/aes_gcm_ossl.c (right): https://codereview.webrtc.org/2129753002/diff/1/srtp/crypto/cipher/aes_gcm_ossl.c#newcode272 srtp/crypto/cipher/aes_gcm_ossl.c:272: EVP_CIPHER_CTX_ctrl(&c->ctx, EVP_CTRL_GCM_SET_TAG, c->tag_len, &dummy_tag); does sizeof(dummy_tag) have to match ...
4 years, 4 months ago (2016-07-26 08:47:14 UTC) #12
joachim
https://codereview.webrtc.org/2129753002/diff/1/srtp/crypto/cipher/aes_gcm_ossl.c File srtp/crypto/cipher/aes_gcm_ossl.c (right): https://codereview.webrtc.org/2129753002/diff/1/srtp/crypto/cipher/aes_gcm_ossl.c#newcode272 srtp/crypto/cipher/aes_gcm_ossl.c:272: EVP_CIPHER_CTX_ctrl(&c->ctx, EVP_CTRL_GCM_SET_TAG, c->tag_len, &dummy_tag); On 2016/07/26 08:47:14, tommi-webrtc wrote: ...
4 years, 4 months ago (2016-07-26 09:08:38 UTC) #13
tommi
lgtm https://codereview.webrtc.org/2129753002/diff/1/srtp/crypto/cipher/aes_gcm_ossl.c File srtp/crypto/cipher/aes_gcm_ossl.c (right): https://codereview.webrtc.org/2129753002/diff/1/srtp/crypto/cipher/aes_gcm_ossl.c#newcode272 srtp/crypto/cipher/aes_gcm_ossl.c:272: EVP_CIPHER_CTX_ctrl(&c->ctx, EVP_CTRL_GCM_SET_TAG, c->tag_len, &dummy_tag); On 2016/07/26 09:08:38, joachim ...
4 years, 4 months ago (2016-07-26 09:45:09 UTC) #14
joachim
On 2016/07/26 09:45:09, tommi-webrtc wrote: > lgtm Tommi, do you have the necessary permissions to ...
4 years, 4 months ago (2016-07-26 11:01:19 UTC) #15
joachim
On 2016/07/26 11:01:19, joachim wrote: > On 2016/07/26 09:45:09, tommi-webrtc wrote: > > lgtm > ...
4 years, 4 months ago (2016-08-01 22:35:35 UTC) #16
tommi
4 years, 4 months ago (2016-08-02 13:22:33 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
48bdd208dcdbb018c4a154cf260414dbdfabb86d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698