cfif1982
cfif1982
there is a line 48: [https://github.com/andybalholm/brotli/blob/master/metablock_command.go#L48](https://github.com/andybalholm/brotli/blob/master/metablock_command.go#L48) The code: `func initBlockSplitterCommand(..., histograms *[]histogramCommand, ...){` ` if histograms == nil || cap(*histograms) < int(*histograms_size) {` ` *histograms = make([]histogramCommand, (*histograms_size))` ` }...
There is a file: [https://github.com/valyala/gozstd/blob/master/writer.go#L163](url) line 163 ` inBuf := (*C.ZSTD_inBuffer)(C.calloc(1, C.sizeof_ZSTD_inBuffer)) ` if function calloc can't allocate memory and return nil - then there is a problem on next...
if num==0, than inside function ts.extract() will be division by zero