You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change callbackdata implementation details
callbackdata is now handled using a copy of
github.com/hillu/cgo-util-callbackdata
This also fixes a CGO pointer rule violation
around (*Compiler).SetIncludeCallback.
streamRead / streamWrite: Avoid memcpy and local buffer
Build a slice that is backed by the passed buffer rather using memcpy
to move data around.
This fixes a segfault in TestReaderBZIP2 with go1.8 where a large
chunk of data is written through (*Rules).Write() ->
yr_rules_save_stream() -> streamWrite() and piped to an external bzip2
process. (This *may* have had to do with a the stack being moved due
to the large buffer allocation.)