Commit Graph

72 Commits

Author SHA1 Message Date
ChunEon Park 009d533645 elementary - fixed some logic errors patched by rajeev.r@samsung.com
Hi all,
I found few memory related issues in elementary package when performed static analysis on it.

These issues include:
Array indices getting out of bounds, freed memory address being passed to a function as parameter, memory not getting cleaned up because of earlier return statement.

Issues details:
1. In elm_widget.c inside function elm_widget_signal_callback_del(), it is possible that freed memory address esd is passed to the sd->callback_del_func(). I think it should be data, not esd.
Moreover what if the callback frees memory for data, then the other problem is that the return value is data from the function elm_widget_signal_callback_del() which in my opinion can be a problem.

2. Inside directory src/edje_externals for files elm_genlist.c, elm_notify.c, elm_list.c, elm_thumb.c and elm_map.c, array indices can go beyound bounary.
sizeof() operator for an array of character pointers will return [number of elements in the array * size of (char*)], basically 4 times the number of elements which has been taken care in assertion inside src/edje_extenarnals
while performing assertion but has been missed in the next statement in the loop condition.

3. In file src/lib/elm_config.c inside function _elm_config_profiles_list, freeing of file iterator has been missed out.

Please review the attached patch and let me know your opinion.

Thanks.
Regards,
Rajeev



SVN revision: 63550
2011-09-23 00:02:13 +00:00
Tom Hacohen 80b062cf07 Elm gettext: Only translate if the app using elm is translatable.
It assumes gettext is initialized before the call to elm_init.

SVN revision: 63452
2011-09-18 07:53:41 +00:00
Aharon Hillel 429c050b46 Elm glayer: Added glayer_continues_enable setting to elm-config-file.
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 63287
2011-09-08 10:10:34 +00:00
Carsten Haitzler 3d52581f0e and start on allowing modified behavior when in access mode. ie turn
it on and off. just settable by env var and config file for now.



SVN revision: 62591
2011-08-19 14:39:27 +00:00
Gustavo Lima Chaves 31a3e6180a [elementary] All docs to elm's header, as Raster wishes.
Discomfitor, now it's time to split the header and/or write another novel.



SVN revision: 62315
2011-08-10 21:03:21 +00:00
Aharon Hillel 06a87f2348 Elm glayer: Added n-long-tap gesture
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 61953
2011-08-01 13:09:05 +00:00
Tom Hacohen 7db652a383 Elm engines: Added "buffer" engine.
This engine just creates a buffer and renders everything to that buffer.
It's really useful for creating emulations of input/output and taking
window captures from them.

SVN revision: 61688
2011-07-25 12:02:52 +00:00
Tom Hacohen 948ab809c1 Elm glayer: Added glayer values to elm config.
Added tolerance related values.

Patch by Aharon Hillel.

SVN revision: 61465
2011-07-18 06:24:34 +00:00
WooHyun Jung 48934aeece elementary : Password's last char show feature can be shown by setting
envs (or modifiying base.src). This patch is made by Shilpa :)


SVN revision: 60859
2011-06-30 05:38:57 +00:00
Carsten Haitzler d13bbc2064 make sure defaults all match with code built in, and profiles etc.
SVN revision: 60182
2011-06-10 08:05:39 +00:00
Carsten Haitzler b01978ac93 forgot to make window of smoothing configurable. fix minor macro
oopsie too.



SVN revision: 60165
2011-06-10 05:07:21 +00:00
Carsten Haitzler 5b2f1b7956 scroller smoothing stuff.
SVN revision: 60126
2011-06-09 10:14:16 +00:00
Carsten Haitzler 59c203323a aaargh. thumbscroll border friction not quite right.. 0 is valid. :)
also... 0 are valid values of these config vars when getting props



SVN revision: 60072
2011-06-08 06:54:02 +00:00
Daniel Juyung Seo c94f5ac6a6 Elementary: Removed trailing whitespaces.
/me spanks raster. Raster has begun to like whitespaces recently.


SVN revision: 59544
2011-05-20 00:43:05 +00:00
Carsten Haitzler 4bf9689385 disable xrender engine and fix string type for 8bit x11 software
rendering



SVN revision: 59433
2011-05-16 02:26:16 +00:00
Daniel Juyung Seo fa6b6ca83b Elementary elm_config.c: Removed trailing whitespaces.
SVN revision: 59370
2011-05-13 16:55:24 +00:00
Carsten Haitzler 4d8465f5f1 elm can now set vsync for gl windows/clients
SVN revision: 59321
2011-05-11 09:06:59 +00:00
Carsten Haitzler 6fe1fd61a7 allow elm to auto-screenshot and save windows all by itself just with
a special elm_engine var - great way to auto-generate screenies from
apps and change config/theme and everything automatically (via scripts
etc.)



SVN revision: 59185
2011-05-04 10:09:59 +00:00
Tom Hacohen 5dc8b2be5e Elementary gettext: Don't set default textdomain, elm is a lib...
SVN revision: 58949
2011-04-27 07:41:06 +00:00
Michael BOUCHAUD 11e6a2ea75 elementary: correct the homepath on windows from vtorri
SVN revision: 58390
2011-04-06 13:57:42 +00:00
ChunEon Park 5176a3f867 elementary / entry, list, scroller, fileselector_button, config, photocam, map, pan, bg, store, priv, pager, conform, box, clock, flipselector
fixed indentation, removed white spaces.



SVN revision: 58267
2011-04-01 19:08:56 +00:00
Carsten Haitzler 4febdc8e0c start a desktop entry mode. shift arrows start/mod selection. can just
click and drag to select.



SVN revision: 58258
2011-04-01 13:20:40 +00:00
WooHyun Jung fc6a5a24b9 From: WooHyun Jung <wh0705.jung@samsung.com>
Subject: [E-devel] [Patch] for Gettext /I18N

Mr. Govi in SISO made a patch for following description. 

Detail Description:

1. If EFL/Elementary Application has i18n String with its own PO file,
then Elementary will end up looking for internal Strings at application
PO files. Passing PACKAGE name in the Elementary String Look up macro
eliminates this issue and looks for internal String from Elm.po files.

2. Macro E_(str) is used, to differentiate the elementary Strings from
commonly used #define _(str) in the applications. ( Just E ed :) )
 


SVN revision: 58085
2011-03-25 04:49:49 +00:00
Tom Hacohen 5028537bc3 Elementary: define the gettext macro in a place that's visible to all widgets.
Patch by Govindaraju SM

SVN revision: 56980
2011-02-13 08:22:06 +00:00
Carsten Haitzler 6eabf29744 ok - lets set cache to tyhe RIGHT value eh?
SVN revision: 56948
2011-02-11 06:16:23 +00:00
Tom Hacohen f5cad764e6 Elementary ui-mirroring: Added on-the-fly ui-mirroring infrastructure
SVN revision: 56845
2011-02-09 16:13:58 +00:00
Tom Hacohen 689ff9abd5 Elementary: Added the infrastructure for ui-mirroring support.
* Added elm_mirrored_get/set to set the system mirrored mode
* Added elm_widget_mirrored/get/set to set each widget's mirrored mode.
* Added code to set the system mirrored mode from translations to elementary and added translations for all the rtl languages. (a trick to load according to locale).
* Future commits will include specific widgets mirrored mode handling.
Work by Aharon Hillel and Tom Hacohen.

SVN revision: 56673
2011-02-03 15:52:49 +00:00
Jae Hwan Kim efaf969d30 From: Jae Hwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel]  [Patch] environment parameter - ELM_EFFECT_ENABLE

I want to add the environment parameter "ELM_EFFECT_ENABLE".
It will play a role as the enablement for the effect of all widget.



SVN revision: 56572
2011-01-31 08:18:58 +00:00
Carsten Haitzler e125443cf8 now there's a good idea! let's actually USE thew config value eh?
*spank myself*



SVN revision: 56279
2011-01-24 10:21:58 +00:00
Christopher Michael 34e18ed4e4 If you add new atom names, be sure to bump the atom count. (This
removes more nasty compiler messages about excess elements in array
initializer, etc, etc).



SVN revision: 55784
2010-12-31 01:08:41 +00:00
Carsten Haitzler 12add1f6ef make flush config have a master boolean enable/disable
SVN revision: 55744
2010-12-24 16:02:30 +00:00
Gustavo Lima Chaves eae9d6b81c Indenting.
SVN revision: 55329
2010-12-06 12:46:16 +00:00
Gustavo Lima Chaves e2b7c27106 New Elementary Config. App. options tab: Scrolling.
Also introducing config. API to set/query those values.



SVN revision: 55328
2010-12-06 12:46:10 +00:00
Iván Briano 77b0cb3ff0 Longpress timeout is now configurable.
Patch by WooHyun Jung <wh0705.jung@samsung.com>


SVN revision: 54939
2010-11-24 17:11:34 +00:00
Gustavo Lima Chaves 179bcf71b2 More text classes support on Elm: list/genlist/gengrid/toolbar items.
NB: we got textblock parts as some of our text elements, everyone
knows.  They support text_class fallbacking, but what would be an
elegant solution to achive reasonable mapping for styling tags (bold,
highlight, etc)? e17 has some "blah_hilight" text classes, which imho
are ugly...



SVN revision: 54915
2010-11-24 01:47:59 +00:00
Gustavo Lima Chaves bbeb7cfcc5 Elm caching settings exposed, part II.
Edje caching primitives exposed in Elm, too, now, and stored at
config. Also, there's now a poller running for all Elm apps doing
cache flushing. All these things have configurable values, of course.

Testing config version bumping too, it should work.



SVN revision: 54851
2010-11-23 06:10:58 +00:00
Gustavo Lima Chaves 4633eb92d8 Elm caching settings exposed, part I.
Now working on exposing edje caching too, and having a cache dumping
poller.  Patch also replaces some focus_overalay object functions,
too.



SVN revision: 54770
2010-11-22 06:56:06 +00:00
Gustavo Lima Chaves 85cc0b3b01 Some more text classes now supported. We clearly need more later,
maybe wrapping unbounded ones into a "general" TC.
TC swithing exposes various widgets bugs WRT layouting of children
objects, we gotta fix them.



SVN revision: 54715
2010-11-19 09:37:33 +00:00
Gustavo Lima Chaves f9172244ac Elementary welcomes text classes support.
I'm now populating the default theme with text classes, just commit
with one for now. There can be tweakings at Elm config app's UI fonts
page, I know, but that will come later (editable preview field, font
hinting/fallback, blablabla).

WARNING: for users testing elm config, an old "rm -rf
~/.elementary/config" might be needed here, after this commit.



SVN revision: 54681
2010-11-18 10:01:24 +00:00
Gustavo Lima Chaves bffe78ab3a Taking off defined block which is not necessary anymore + indenting.
SVN revision: 54678
2010-11-18 10:00:41 +00:00
Carsten Haitzler 0d689fc143 fix elm_module env var and ... elm_finger size . tnx mj lee. :)
SVN revision: 54674
2010-11-18 09:30:46 +00:00
Davide Andreoli 2abf567a5f Make the scroller more "weighted" (or hard-to-drag) while you drag it
out of bounds, that is when the content is finished. In this way
 the user note that the content is at the end.

 All the others finger-scroll implementation (iphone,android) works this way ;)

 This is configurable by the 'thumbscroll_border_friction' config value,
 and by the 'ELM_THUMBSCROLL_BORDER_FRICTION' var.
 0.0 means: disable the friction
 0.5 is the default
 1.0 means: maximum friction

 I have tested this with every scroller in elm_test and seems to work
 well in all the occurence, if you see somthing strange in some scroller
 please let me know.

 DaveMDS
  



SVN revision: 54170
2010-11-05 09:31:51 +00:00
Gustavo Lima Chaves 0313861979 Just adding more readability to eet data descriptor filling.
SVN revision: 54149
2010-11-04 13:50:54 +00:00
Gustavo Lima Chaves e5ddc241f4 New elm config app's option: engine setting.
SVN revision: 54082
2010-11-01 21:10:14 +00:00
Gustavo Lima Chaves e667a17bc8 Switching elm config's engine variable from enum to string ptr.
SVN revision: 54081
2010-11-01 21:10:07 +00:00
Gustavo Lima Chaves 78fddffd9a Just shutting gcc up.
SVN revision: 54079
2010-11-01 21:09:55 +00:00
Bruno Dilly ab792e1e8f elm clean up
SVN revision: 54076
2010-11-01 12:44:30 +00:00
Carsten Haitzler baf0b67a9d more dirent usage. nix.
SVN revision: 54019
2010-10-30 06:22:14 +00:00
Carsten Haitzler 661ef90a8e grrr - dont reply on non-portable or abstracted info in dirent. eina
fixed.



SVN revision: 54016
2010-10-30 05:48:31 +00:00
Gustavo Lima Chaves 0699115dae Fixing two buggers here:
- profile selection saving before we assure the dir is there
  - wrongly setting data dir at buffers



SVN revision: 54002
2010-10-29 17:32:16 +00:00