On Tue, Jul 04, 2017 at 07:49:14PM +0100, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> > > control_desc[] is an array of strings that correspond to a > series of message types; they're used only for error messages, but if > the message type is seriously broken then we could go off the end of > the array. > > Convert the array to a function control_desc() that bound checks. > > Signed-off-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
Reviewed-by: Peter Xu <pet...@redhat.com> -- Peter Xu