• Brian Silverman's avatar
    Avoid upcasting uninitialized pointers · 96c2dd5d
    Brian Silverman authored
    Fixes google/protobuf#693
    
    msan flags this as being undefined behavior. I think it's triggering
    because the compiler has to insert a branch to avoid changing the
    pointer's value if it starts out NULL. I can't figure out if this is
    actually undefined behavior or not, but it definitely seems to be a gray
    area of the standard which is best avoided.
    96c2dd5d
Name
Last commit
Last update
..
google/protobuf Loading commit data...
solaris Loading commit data...
Makefile.am Loading commit data...