Skip to content

Instantly share code, notes, and snippets.

View bsdb0y's full-sized avatar

Neeraj Pal bsdb0y

View GitHub Profile
@bsdb0y
bsdb0y / Keybase.md
Created August 10, 2019 05:38
Keybase.md

Keybase proof

I hereby claim:

  • I am bsdb0y on github.
  • I am bsdboy_ (https://keybase.io/bsdboy_) on keybase.
  • I have a public key ASCNck2AGis9JYs1kHdqrYlsGH1ZDkKgPpfCekbs2sJ9Two

To claim this, I am signing this object:

@bsdb0y
bsdb0y / lame_3.99.5_cve_2017_9411.patch
Created August 28, 2017 10:34
Patch for CVE-2017-9411 in LAME 3.99.5
diff --git a/libmp3lame/util.c b/libmp3lame/util.c
index adde6c4..43c28b8 100644
--- a/libmp3lame/util.c
+++ b/libmp3lame/util.c
@@ -614,7 +614,14 @@ fill_buffer_resample(lame_internal_flags * gfc,
sample_t y;
assert(j2 < len);
assert(j2 + BLACKSIZE >= 0);
+
y = (j2 < 0) ? inbuf_old[BLACKSIZE + j2] : inbuf[j2];