diff options
author | Adam Cozzette <acozzette@google.com> | 2017-07-19 15:24:30 -0700 |
---|---|---|
committer | Adam Cozzette <acozzette@google.com> | 2017-07-19 15:29:28 -0700 |
commit | 417aae615489f6b6a0aa750a4c3b4affe597d923 (patch) | |
tree | b74874618a3eb076cb87f5f527ad3c18012c989f /ruby | |
parent | aa61bb0d3cee089c37da32584d03132177dd847c (diff) | |
download | protobuf-417aae615489f6b6a0aa750a4c3b4affe597d923.tar.gz protobuf-417aae615489f6b6a0aa750a4c3b4affe597d923.tar.bz2 protobuf-417aae615489f6b6a0aa750a4c3b4affe597d923.zip |
Fixed dynamic initialization for C++ lite
An ifdef condition seems to have been inverted by mistake, causing the
dynamic initialization to occur for lite if and only if the
_NO_STATIC_INITIALIZER macro is set. This problem manifested itself as
segfaults due to uninitialized empty strings:
https://github.com/google/protobuf/issues/2839
Since no one complained about initialization not happening, it would
appear that we can just disable this initialization for lite
unconditionally, so that is what this change does. Instead of the
default instance initialization happening pre-main, it now always
happens lazily when needed.
Diffstat (limited to 'ruby')
0 files changed, 0 insertions, 0 deletions