I hereby claim:
- I am adhokshajmishra on github.
- I am adhokshajmishra (https://keybase.io/adhokshajmishra) on keybase.
- I have a public key ASCQTl3KRGd4D9qoyjVXIbJUjg0rYxfaSSC7LDps5t-4pgo
To claim this, I am signing this object:
diff --git a/frontend/get_audio.c b/frontend/get_audio.c | |
index 79a684e..babd027 100644 | |
--- a/frontend/get_audio.c | |
+++ b/frontend/get_audio.c | |
@@ -1286,6 +1286,14 @@ read_samples_pcm(FILE * musicin, int sample_buffer[2304], int samples_to_read) | |
} | |
return -1; | |
} | |
+ | |
+ // make sure samples_to_read <= 2304 |
diff --git a/libmp3lame/util.c b/libmp3lame/util.c | |
index e0d48d3..adde6c4 100644 | |
--- a/libmp3lame/util.c | |
+++ b/libmp3lame/util.c | |
@@ -533,6 +533,10 @@ fill_buffer_resample(lame_internal_flags * gfc, | |
SessionConfig_t const *const cfg = &gfc->cfg; | |
EncStateVar_t *esv = &gfc->sv_enc; | |
double resample_ratio = (double)cfg->samplerate_in / (double)cfg->samplerate_out; | |
+ | |
+ if (resample_ratio < 0.0) |
diff --git a/src/helper.h b/src/helper.h | |
index 8fe62a6..b49eb81 100644 | |
--- a/src/helper.h | |
+++ b/src/helper.h | |
@@ -142,11 +142,19 @@ inline void SwapMemoryArea(void* pData, unsigned long AreaSize, uint WordSize) { | |
inline void LoadString(RIFF::Chunk* ck, std::string& s) { | |
if (ck) { | |
const char* str = (char*)ck->LoadChunkData(); | |
- int size = ck->GetSize(); | |
- int len; |
diff --git a/src/gig.cpp b/src/gig.cpp | |
index 6a24f16..c48d650 100644 | |
--- a/src/gig.cpp | |
+++ b/src/gig.cpp | |
@@ -2967,7 +2967,10 @@ namespace { | |
if (file->GetAutoLoad()) { | |
for (uint i = 0; i < DimensionRegions; i++) { | |
uint32_t wavepoolindex = _3lnk->ReadUint32(); | |
- if (file->pWavePoolTable) pDimensionRegions[i]->pSample = GetSampleFromWavePool(wavepoolindex); | |
+ if (file->pWavePoolTable && pDimensionRegions[i]) |
diff --git a/dnstracer.c b/dnstracer.c | |
index 167342a..872707d 100644 | |
--- a/dnstracer.c | |
+++ b/dnstracer.c | |
@@ -1619,7 +1619,7 @@ main(int argc, char **argv) | |
if (argv[0] == NULL) usage(); | |
// check for a trailing dot | |
- strcpy(argv0, argv[0]); | |
+ strncpy(argv0, argv[0], NS_MAXDNAME); |
diff --git a/lib/block.c b/lib/block.c | |
index db245b3..3df4019 100644 | |
--- a/lib/block.c | |
+++ b/lib/block.c | |
@@ -147,15 +147,26 @@ void _vorbis_block_ripcord(vorbis_block *vb){ | |
int vorbis_block_clear(vorbis_block *vb){ | |
int i; | |
+ | |
+ if (vb == NULL) |
diff --git a/oggenc/audio.c b/oggenc/audio.c | |
index 477da8c..457038d 100644 | |
--- a/oggenc/audio.c | |
+++ b/oggenc/audio.c | |
@@ -585,9 +585,20 @@ int wav_open(FILE *in, oe_enc_opt *opt, unsigned char *oldbuf, int buflen) | |
wav->channel_permute = malloc(wav->channels * sizeof(int)); | |
if (wav->channels <= 8) | |
- /* Where we know the mappings, use them. */ | |
- memcpy(wav->channel_permute, wav_permute_matrix[wav->channels-1], |
I hereby claim:
To claim this, I am signing this object: