pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #6719] rewrite of interaction.c


From: Jason H Stover
Subject: [patch #6719] rewrite of interaction.c
Date: Sat, 10 Jan 2009 01:00:45 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

Follow-up Comment #2, patch #6719 (project pspp):

'4. It looks to me as if interaction_value_create is going to cause a buffer
overflow. result->strings has a width of MAX_SHORT_STRING but you are writing
to it MAX_SHORT_STRING * n_vars bytes + 1 bytes.'

I fixed the other problems, but I'm not sure about this one. The obvious way
to handle it is to do this:

result->strings = value_create (n_vars * MAX_SHORT_STRING + 1);

but that seems like a bad idea because result->strings is a union value *,
whose 's' member has size of only MAX_SHORT_STRING. So what should I do? I
need a union value *, but with more space to hold the string.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?6719>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]