From 56c67fded6cf0e44f4430ad6007e42ca013827bf Mon Sep 17 00:00:00 2001 From: lomik Date: Fri, 8 Jan 2016 00:52:19 +0300 Subject: [PATCH] Version 0.7-beta4 --- README.md | 5 ++++- carbon-agent.go | 2 +- debian/changelog | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f5cc1ec76..53950c29b 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,8 @@ enabled = true [pickle] listen = ":2004" enabled = true +# Limit message size for prevent memory overflow +max-message-size = 67108864 [carbonlink] listen = "127.0.0.1:7002" @@ -123,12 +125,13 @@ enabled = false ## Changelog ##### master -##### 0.7-beta1 +##### 0.7-beta4 * Grace stop on `USR2` signal: close all socket listeners, flush cache to disk and stop carbon * Reload persister config (`whisper` section of main config, `storage-schemas.conf` and `storage-aggregation.conf`) on `HUP` signal * Fix bug: Cache may start save points only after first checkpoint * Decimal numbers in log files instead of hexademical #22 * Fix bug: NaN values being saved in Whisper datafiles #17 (thanks [Andrew Hayworth](https://github.com/ahayworth)) +* Fix bug: may crash on bad pickle message with big message size in header #30. Added option `pickle.max-message-size` with 64 MB default value ##### version 0.6 * `metric-interval` option diff --git a/carbon-agent.go b/carbon-agent.go index 67cbe9340..e606d3224 100644 --- a/carbon-agent.go +++ b/carbon-agent.go @@ -22,7 +22,7 @@ import ( import _ "net/http/pprof" // Version of go-carbon -const Version = "0.7-beta3" +const Version = "0.7-beta4" func httpServe(addr string) (func(), error) { tcpAddr, err := net.ResolveTCPAddr("tcp", addr) diff --git a/debian/changelog b/debian/changelog index c044c03ae..c02b7f7d5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +go-carbon (0.7-beta4) unstable; urgency=low + * Fix bug: may crash on bad pickle message with big message size in header + #30. Added option `pickle.max-message-size` with 64 MB default value + + -- Roman Lomonosov Fri, 8 Jan 2016 00:50:00 +0300 + go-carbon (0.7-beta3) unstable; urgency=low * Missing error handling