* Ricardo Neri wrote:
> > > + snprintf(warn, sizeof(warn), "%s %s", umip_insns[umip_inst],
> > > + umip_warn_use);
> >
> > This is incredibly fragile against future buffer overflows, and warning
> > about it
> > in comments does not make it less fragile!
>
> I need to concatenate th
On Tue, Nov 14, 2017 at 08:34:08AM +0100, Ingo Molnar wrote:
>
> * Ricardo Neri wrote:
>
> > +const char * const umip_insns[5] = {
> > + [UMIP_INST_SGDT] = "sgdt",
> > + [UMIP_INST_SIDT] = "sidt",
> > + [UMIP_INST_SMSW] = "smsw",
> > + [UMIP_INST_SLDT] = "sldt",
> > + [UMIP_INST_STR] =
* Ricardo Neri wrote:
> +const char * const umip_insns[5] = {
> + [UMIP_INST_SGDT] = "sgdt",
> + [UMIP_INST_SIDT] = "sidt",
> + [UMIP_INST_SMSW] = "smsw",
> + [UMIP_INST_SLDT] = "sldt",
> + [UMIP_INST_STR] = "str",
> +};
Sigh ...
> +/*
> + * If you change these strings, ens
3 matches
Mail list logo