The first patch might fix segfaults in both functions. The second patch would only fix a segfault in _save_VertexAttrib4fvARB. I'm going to attach a third patch that fixes yet another problem with display lists that might affect FlightGear/openscenegraph.