- Aug 11, 2020
-
-
Tobias S. Josefowitz authored
If the needle supplied to array_search() was a destructed object, array_search() would convert it to (PIKE_T_INT,NUMBER_DESTRUCTED)-type 0 in-place. Since array_search() is sometimes called with the needle residing in another array - for example when ORing arrays - this would introduce PIKE_T_INT items into such arrays without reflecting this in said array's type_field. If the type_field would then later on (still) only have BIT_OBJECT set, we would call free_object() on the thus introduced PIKE_T_INT when freeing array items, leading straight to a segmentation fault.
-
- Mar 19, 2019
-
-
Henrik (Grubba) Grubbström authored
In some cases the array optimizer replaced UNDEFINED values with zeroes.
-
- Jun 11, 2015
-
-
Martin Karlgren authored
-
- Jun 03, 2015
-
-
Martin Karlgren authored
-
- Mar 23, 2015
-
-
Henrik (Grubba) Grubbström authored
Setters expect to be called when the corresponding variable is modified... This behaviour caused Roxen's test-suite to fail due to change triggers not being called.
-
- Oct 02, 2014
-
-
Per Hedbor authored
This was sort of done before, but it first assigned the lvalue to 0, then assigned it back to the array once done. This new version is about 2x faster, improving the "append array" benchmark by about 60%.
-
- Sep 03, 2014
-
-
Martin Nilsson authored
-
Martin Nilsson authored
-
Martin Nilsson authored
-
Martin Nilsson authored
-
Martin Nilsson authored
-
- Aug 22, 2014
-
-
Martin Nilsson authored
-
- Aug 14, 2014
-
-
Per Hedbor authored
It more or less works as one would expect now.
-
- Jul 14, 2014
-
-
Martin Nilsson authored
-
- Jun 18, 2014
-
-
Henrik (Grubba) Grubbström authored
Make it easier to keep track of state in the visit_*() API by tracking when we start and stop visiting things.
-
- Jun 17, 2014
-
-
Henrik (Grubba) Grubbström authored
All the visit_*() functions and macros should now propagate the argument extra.
-
Henrik (Grubba) Grubbström authored
All the visit_*() functions now have all arguments.
-
- May 06, 2014
-
-
Henrik (Grubba) Grubbström authored
-
- Apr 27, 2014
-
-
Martin Nilsson authored
-
Martin Nilsson authored
-
- Jan 12, 2014
-
-
Tobias S. Josefowitz authored
-
- Dec 14, 2013
-
-
Henrik (Grubba) Grubbström authored
Also unifies the two branches of apply_array().
-
- Nov 03, 2013
-
-
Tobias S. Josefowitz authored
-
- Jun 11, 2013
-
-
Henrik (Grubba) Grubbström authored
This is to simplify renumbering of the types.
-
- May 28, 2013
-
-
Martin Nilsson authored
-
- May 25, 2013
-
-
Per Hedbor authored
It now simply returns the array element (if it is a string, that is).
-
Per Hedbor authored
This especially helps when you have arrays with objects with `< and `== operator overloading, where the constant is also changed dramatically. Also, it is now enough to have == operator overloading to get - to work (given that there is at most one object in the array getting items removed.)
-
Per Hedbor authored
Replace uses search_array, which in turn calls check_array_for_destruct. So, if you had an array where all elements were replaced by the replace containing at least one object replace() was O(n^2), not O(n). In general check_array_for_destruct is rather unneeded, since the comparison functions already checks for destructed objects, but I guess that it might cause objects to be free:d slightly sooner.
-
- Apr 11, 2013
-
-
Arne Goedeke authored
When using array implode with zero elements it was possible to write the delimiter into the newly created string too many times, resulting in a buffer overrun. This bug has been introduced by commit 2f27ebab.
-
- Feb 25, 2013
-
-
Arne Goedeke authored
-
- Apr 07, 2012
-
-
Henrik (Grubba) Grubbström authored
-
- Nov 05, 2011
-
-
Martin Nilsson authored
-
- Oct 28, 2011
-
-
Henrik (Grubba) Grubbström authored
-
- Jul 22, 2011
-
-
Henrik (Grubba) Grubbström authored
-
- May 02, 2011
-
-
Per Hedbor authored
Since array.c is the only place the is_more_than_one_bit function is used, and it is, unlike many of our macros, suitable for inlining, inline it.
-
- Apr 02, 2011
-
-
Martin Stjernholm authored
-
Martin Stjernholm authored
This was a regression from 3140378d.
-
- Mar 06, 2011
-
-
Martin Stjernholm authored
-
- Nov 05, 2010
-
-
Martin Stjernholm authored
-
- Oct 16, 2010
-
-
Martin Stjernholm authored
The stable sort function masks it out, so that stable sorting work together with the previous commit.
-