sdk/emulator/qemu.git
8 years agoosutil: get_java_path() move to osutil-win32.c
SeokYeon Hwang [Thu, 22 Oct 2015 07:23:56 +0000 (16:23 +0900)]
osutil: get_java_path() move to osutil-win32.c

qemu_oom_check() uses new QT5 dialog for reporting errors. Finally,
get_java_path() is called by tizen specific logics only. Then it
can move to tizen specific utility now.

Change-Id: I9f2d0dd26715059734bc8242320de01c539a331c
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoerror: use new qt5 dialog instead of legacy java dialog
SeokYeon Hwang [Thu, 22 Oct 2015 06:19:47 +0000 (15:19 +0900)]
error: use new qt5 dialog instead of legacy java dialog

Change-Id: I3682bd91063ffe2393207ed9c6a7d2d4d003a46c
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agohax-all: just use compiler's builtin ffsl()
SeokYeon Hwang [Thu, 22 Oct 2015 05:04:40 +0000 (14:04 +0900)]
hax-all: just use compiler's builtin ffsl()

Toolchains of some platforms don't have ffsl() function. To solve
it, just use compiler's builtin ffsl().

Change-Id: I176aabe730b0bf8afbd5a5d9323e73b203855cdb
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agobuild: clean DIBS build scripts up
SeokYeon Hwang [Wed, 21 Oct 2015 07:49:22 +0000 (16:49 +0900)]
build: clean DIBS build scripts up

Specific operations for MacOS move to macos-64 script.
Routines checking whether TARGET_OS is valid or not is added.

Change-Id: I7aadff447dcd7e7cbe6f55de9f4f6f319c21c2f3
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoMerge tag 'v2.4.0.1' into tizen_3.0_develop
SeokYeon Hwang [Thu, 22 Oct 2015 02:34:15 +0000 (11:34 +0900)]
Merge tag 'v2.4.0.1' into tizen_3.0_develop

v2.4.0.1

CVE-only release (see commit log for CVE numbers)

8 years agoQt: code refactoring to improve readability
Jihye Won [Wed, 21 Oct 2015 00:29:47 +0000 (09:29 +0900)]
Qt: code refactoring to improve readability

I decreased indentation on the existing source code.
This code refactoring will help developers understand and
improve readability.

Change-Id: I5edd527a69dd8fd181a28d80025b1d53273ebeb7
Signed-off-by: Jihye Won <jihye.won1@samsung.com>
8 years agoinstall: remove enlarging shared memory size
Munkyu Im [Mon, 12 Oct 2015 06:55:25 +0000 (15:55 +0900)]
install: remove enlarging shared memory size

Because it needs communication protocol to deliver the frame buffer data
to swt skin, the frame buffer between swt skin and qemu was shared by shared memory.
The size of the buffer needs big size.(the size is calculated by width * height * color depth)
It caused performance issue.
Also the buffer was useless since the protocol was integrated by QT.

Change-Id: Ib593cdef178a9a154d6c5ad70ae20d3735829ffe
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agoVIGS: Enabling NVidia GPU on Optimus systems
Jinhyung Jo [Wed, 7 Oct 2015 07:43:02 +0000 (16:43 +0900)]
VIGS: Enabling NVidia GPU on Optimus systems

Add global variable NvOptimusEnablement for the NVidia GPU.
It can run with Release 302 driver or later.
Add global vatiable AmdPowerXpressRequestHighPerformance for the AMD GPU.
It can run with 13.35 driver or later.

Change-Id: Ia917d46dd466fbfa2260c8013dab6baa7ffbb803
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoconfigure: remove --export-all-symbols on Windows
SeokYeon Hwang [Thu, 15 Oct 2015 03:18:53 +0000 (12:18 +0900)]
configure: remove --export-all-symbols on Windows

An option "--export-all-symbols" seems to hide other exported value.
We don't know yet whether it is Windows specification or bug on GNU
toolchains. This commit causes some symbol name is missed in backtrace
information. But I think it is better to re-write backtrace code that
uses debugging symbols instead of exported symbols.

We use "-rdynamic" instead of "-Wl,--export-dynamic" since some
linker use "--export_dynamic" not "--export-dynamic".

"-static-libgcc" and "-static-libstdc++" are linker options, so they
are designated as a ldflags.

Change-Id: I1f301bc44c0ee245d7d2a4d7af7a238d0df648df
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agonet: modify script file for setting bridge network
Munkyu Im [Thu, 8 Oct 2015 06:25:13 +0000 (15:25 +0900)]
net: modify script file for setting bridge network

 - fix if statement
 - modify log

Change-Id: Ie9841bf824680fa0106c596f102a2d3a9170381d
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agocoroutine: decrease POOL_BATCH_SIZE for Win32
SeokYeon Hwang [Mon, 19 Oct 2015 05:20:25 +0000 (14:20 +0900)]
coroutine: decrease POOL_BATCH_SIZE for Win32

In 32bit Windows, POOL_BATCH_SIZE == 64 can cause ERROR_NOT_ENOUGH_MEMORY
in CreateFiber() in very busy fiber creation. So we decrease the value to
32 for Win32.

Change-Id: I09d85087f51d696909f732d1589e0efba4c6d699
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agocoroutine: co->fiber has not to be null
SeokYeon Hwang [Mon, 19 Oct 2015 04:57:24 +0000 (13:57 +0900)]
coroutine: co->fiber has not to be null

CreateFiber() will be return NULL when it fails. If co->fiber is null,
SwitchToFiber() aborts with C0000005 and it corrupts stack that make
hard to find causes. So it is better to abort when CreateFiber()
returns NULL.

Change-Id: Ifdc36404ce523cee842fd486bdbe071e58b7d7b3
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoconfigure: support recent Windows APIs
SeokYeon Hwang [Mon, 19 Oct 2015 05:17:17 +0000 (14:17 +0900)]
configure: support recent Windows APIs

We do not support Windows XP or older version.

Change-Id: I51e5ae09a6a486d36b347b95a5007067a72ab013
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoconfigure: _WIN32_WINNT should be set when WINVER is set
SeokYeon Hwang [Mon, 19 Oct 2015 05:05:15 +0000 (14:05 +0900)]
configure: _WIN32_WINNT should be set when WINVER is set

_WIN32_WINNT can be set different value from WINVER. But _WIN32_WINNT
and WINVER are used independantly in header files for determining which
API can be used for specified Windows version. So, it is better that
_WIN32_WINNT and WINVER has same value.

And if _WIN32_WINNT >= 0x0600 (Vista or newer) some APIs need ole32.

Change-Id: I6a1900e80327caad4dc0e7709dec3a1c981b7b0d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agomenu: add a Move menu into the context menu.
Jihye Won [Thu, 15 Oct 2015 08:04:14 +0000 (17:04 +0900)]
menu: add a Move menu into the context menu.

The Move function for moving easily the emulator was introduced.
So, I added the menu and shortcut for the function.

Change-Id: I2d0d1309399a045fab2512ececf433352cfec4a4
Signed-off-by: Jihye Won <jihye.won1@samsung.com>
8 years agoQt: add a "Move" function to move an emulator
Jihye Won [Wed, 7 Oct 2015 09:18:00 +0000 (18:18 +0900)]
Qt: add a "Move" function to move an emulator

The Move function can improve user convenience
when the skin bezel is too small to grab the emulator

Change-Id: I4729326650ca42364252625c6ec4b0dbf370414c
Signed-off-by: Jihye Won <jihye.won1@samsung.com>
8 years agogitignore: added qt5_msgbox.res
Jihye Won [Mon, 19 Oct 2015 05:08:47 +0000 (14:08 +0900)]
gitignore: added qt5_msgbox.res

After building tizen on Windows,
tizen/standalone-src/qt5_msgbox.res is created.
I added the file in gitignore for the file
to be untracked.

Change-Id: I33b1c2dd96cd3eb4959a54fa046c5c8f158ec87e
Signed-off-by: Jihye Won <jihye.won1@samsung.com>
8 years agoQt: fixed the bug about Qt log in debugging mode.
Jihye Won [Wed, 14 Oct 2015 12:31:18 +0000 (21:31 +0900)]
Qt: fixed the bug about Qt log in debugging mode.

There was an encoding error about the file name of Qt log
when the emulator is executed in debugging mode.
So, I fixed the error by using member functions of QByteArray.

Change-Id: I35effa7ba50e172a68783d83259d714b14ca72a0
Signed-off-by: Jihye Won <jihye.won1@samsung.com>
8 years agomulti-touch: added device initializing checking
GiWoong Kim [Fri, 16 Oct 2015 04:28:47 +0000 (13:28 +0900)]
multi-touch: added device initializing checking

Multi-touch events should be ignored when
the touchscreen device is not ready yet.

Change-Id: I7486e1bc91bf9a4519a9e27a6c331aca65b03b39
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agomulti-touch: improved re-touch decision for touch point
GiWoong Kim [Thu, 15 Oct 2015 09:47:07 +0000 (18:47 +0900)]
multi-touch: improved re-touch decision for touch point

To get more precise distincion for re-touch points,
shape of decision region need to change to circular from rectangle.
It makes reduce a gap between mouse event area(decision region)
and point appearance.

Change-Id: I6e47a0d3a8c1bd45ba0df124cf744573fffe41dd
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoui: delete a space before the colon on logging
GiWoong Kim [Thu, 15 Oct 2015 09:43:16 +0000 (18:43 +0900)]
ui: delete a space before the colon on logging

Change-Id: I14aa91a3b86f9c8a0549b54e005dbb4b781e825b
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agogui: added hover XML schema
GiWoong Kim [Mon, 12 Oct 2015 10:22:54 +0000 (19:22 +0900)]
gui: added hover XML schema

define hover schema for main window's HW key on profile-specific skin

Change-Id: I3447ffa9f490510a485b63ca6587b4bceb5c9b5d
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agohwkey: modified dual keycode handling for HW key
GiWoong Kim [Tue, 6 Oct 2015 08:00:25 +0000 (17:00 +0900)]
hwkey: modified dual keycode handling for HW key

- hold down the HW key for up to 2 seconds: long press
- under the 2 seconds: short press

Change-Id: I4071210c1183a8ba9227f815489694cb7f70960e
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoRevert "linuxboot: fix loading old kernels"
Sooyoung Ha [Wed, 14 Oct 2015 03:59:46 +0000 (12:59 +0900)]
Revert "linuxboot: fix loading old kernels"

This reverts commit 269e2358492b674c50160553d037702e916b9f1b.
This commit occured a kernel loading failure on windows with haxm. I am
not sure which code causes this but tizen emulator would work well if I
revert this commit, so I do for now.

Change-Id: Ib622a106fdf5075956cf5cbd3199db27828e1887
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agoqt5_msgbox: check if message has only a newline character.
Jihye Won [Tue, 13 Oct 2015 05:02:10 +0000 (14:02 +0900)]
qt5_msgbox: check if message has only a newline character.

qt5_msgbox shows an empty message
when the message as the argument of error_report() ends a newline character.
So, it is necessary to check if the message is valid before executing qt5_msgbox.

Change-Id: I48e4bd0e484a69bd00c6a9aace5b4390d996bd62
Signed-off-by: Jihye Won <jihye.won1@samsung.com>
8 years agoMerge branch 'tizen_2.4_develop' into tizen_3.0_develop
SeokYeon Hwang [Wed, 14 Oct 2015 04:05:50 +0000 (13:05 +0900)]
Merge branch 'tizen_2.4_develop' into tizen_3.0_develop

Change-Id: I65d65fd526fd0fc169e7b71fe4a0322e01ac7f52
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoecs: add log about target image path.
minkee.lee [Tue, 13 Oct 2015 06:59:53 +0000 (15:59 +0900)]
ecs: add log about target image path.

- change log level. (TRACE -> INFO)
- Target image path is used in emulator-manager
  in order to check running-VM.

Change-Id: I5f91f30ba9bdf3887028c5272b4efe6ec5b75e70
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agovl.c: HAX needs ram_size for initializing
SeokYeon Hwang [Wed, 7 Oct 2015 04:17:38 +0000 (13:17 +0900)]
vl.c: HAX needs ram_size for initializing

configure_accelerator() uses current_machine as parameter. But
current_machine struct does not contain proper ram_size since it is
set just before machine init. So configure_accelerator() should run
after entire current_machine memebers are prepared.

Change-Id: I944d60d1768bb0512350cbd2ca4a62e3962515ca
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agopackage: version up (2.2.66)
minkee.lee [Thu, 8 Oct 2015 02:42:18 +0000 (11:42 +0900)]
package: version up (2.2.66)

Change-Id: Ib319ad134ae21b231f28392970b9578637e5c1ec
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
8 years agovirtio: change device id name
Munkyu Im [Fri, 2 Oct 2015 06:40:46 +0000 (15:40 +0900)]
virtio: change device id name

append maru suffix to distinguish from original device id name

Change-Id: I829a95e1bcd330dbfbbc9cf0cbf7549a11e93370
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agogui: standardize tooltip style
GiWoong Kim [Fri, 2 Oct 2015 01:58:53 +0000 (10:58 +0900)]
gui: standardize tooltip style

black font, white background, black 1px border

Change-Id: Ied412879f7ee7b4e6b672828dabdedda59c9a903
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoemul_state: change display resolution fallback
SeokYeon Hwang [Fri, 2 Oct 2015 04:25:38 +0000 (13:25 +0900)]
emul_state: change display resolution fallback

Display resolution fallback uses initial display resolution.

Change-Id: Ida54c4c8b55e828cbf9b0ab976f3393b6aecdfc5
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agopackage: version up
GiWoong Kim [Wed, 30 Sep 2015 08:16:54 +0000 (17:16 +0900)]
package: version up

2.2.65

Change-Id: Ieed0405b6dd5b3e3bad8750a91ff2e4797cec972
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agopackage: add prerequisite
Munkyu Im [Tue, 22 Sep 2015 07:06:36 +0000 (16:06 +0900)]
package: add prerequisite

used for enabling bridged network feature.
add glib2, acl, zlib, pixman package for qemu.

Change-Id: Ie2c29d1b82982670d046effea0ff669ce2e22918
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agoinstall: modify path for temp files
Munkyu Im [Thu, 24 Sep 2015 09:06:37 +0000 (18:06 +0900)]
install: modify path for temp files

"~/.installmanager" path is using for installer.
it can be changed for some reasons.

Change-Id: I7bfd78ef52f39aa4e89f13ca6de5dc4f105f2960
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agonet: bridge name is flexible
Munkyu Im [Thu, 24 Sep 2015 08:47:25 +0000 (17:47 +0900)]
net: bridge name is flexible

qemu set bridged network on mac os 10.8.
bridge name was fixed with "bridge0".
However from mac os 10.9, the setting is possible on
host network configuration. So, support another bridge names.

Change-Id: I6c75766ca624847cf5e11a5ff9f61afbe89f041f
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agomenu: modified shortcut info table on Detailed Info dialog
GiWoong Kim [Fri, 25 Sep 2015 07:20:51 +0000 (16:20 +0900)]
menu: modified shortcut info table on Detailed Info dialog

Short-cut key information table has been separated into two parts.
One is a Menu short-cut table, the other is HW key short-cut table.

Change-Id: I8232cec0e77e6374dd43cc597ad4b5de3ed7a36a
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agopackage: version-up(2.2.67)
ChulHo Song [Wed, 30 Sep 2015 05:10:03 +0000 (14:10 +0900)]
package: version-up(2.2.67)

Change-Id: Id005ae1248726e5253253b8e357fd04cac32de56
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
8 years agosdcard: allocate "DriveInfo" to delete the "BlockBackend" automatically
ChulHo Song [Wed, 30 Sep 2015 04:28:56 +0000 (13:28 +0900)]
sdcard: allocate "DriveInfo" to delete the "BlockBackend" automatically

When the sdcard is detached, "virtio_blk_device_unrealize" marks
auto deletion flag to the "DriveInfo". But "qmp_marshal_input_blockdev_add"
does not create the "DriveInfo". To destroy BlockBackend object automatically
we need to create dummy "DriveInfo".

Change-Id: I8501c5b14daab487e72b4b6b6a0744475c6553a3
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
8 years agoRevert "blockdev: bug fix for multiple sdcard attachment with same ID"
ChulHo Song [Wed, 30 Sep 2015 04:26:30 +0000 (13:26 +0900)]
Revert "blockdev: bug fix for multiple sdcard attachment with same ID"

This reverts commit 0e218af5119f14fb3172097833e1851bc32be73e.

Change-Id: Idde0232cd4533bb04f001d9c5ef581e578e1ca03
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
8 years agopackage: version-up(2.2.66)
haken.kim [Thu, 24 Sep 2015 12:14:52 +0000 (21:14 +0900)]
package: version-up(2.2.66)

Change-Id: I6aa401a0ccafc987f58afe73d844f89aa12d1771
Signed-off-by: haken.kim <haken.kim@samsung.com>
8 years agoblockdev: bug fix for multiple sdcard attachment with same ID
haken.kim [Thu, 24 Sep 2015 06:58:51 +0000 (15:58 +0900)]
blockdev: bug fix for multiple sdcard attachment with same ID

 - returns BlockBackend if the device id already exits

Change-Id: I7c1417569321f16460f32e238489e59c04eecf84
Signed-off-by: haken.kim <haken.kim@samsung.com>
8 years agoecs: error handling when try to connect eventcast
haken.kim [Thu, 24 Sep 2015 09:19:33 +0000 (18:19 +0900)]
ecs: error handling when try to connect eventcast

Change-Id: I7df2af3ee61cd58d5aa840cfead21578d14d6d5d
Signed-off-by: haken.kim <haken.kim@samsung.com>
8 years agoshortcut: changed the shortcut to execute Shell.
Jihye Won [Mon, 21 Sep 2015 10:59:26 +0000 (19:59 +0900)]
shortcut: changed the shortcut to execute Shell.

Because VoiceOver keyboard shortcut on MacOSX is Ctrl+F5,
I changed the shortcut from Ctrl+F5 into Ctrl+Shift+S.
Also, the Ctrl key is Command key on MacOSX.
Therefore, users can execute Shell(SDB) by pressing Command+Shift+S.
New shortcut is more intuitive and avoids duplicate VoiceOver shortcut.

Change-Id: Ide8886458e61dac4cc9b4b6c3a2c5f6a514bbc4a
Signed-off-by: Jihye Won <jihye.won1@samsung.com>
(cherry picked from commit cbbd1185cd5aac1a15211ac91b43a1e6a954c3b7)

8 years agoUpdate version for 2.4.0.1 release
Michael Roth [Tue, 22 Sep 2015 21:53:17 +0000 (16:53 -0500)]
Update version for 2.4.0.1 release

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
8 years agoYaGL: Removed a deprecated attribute
jinhyung.jo [Mon, 21 Sep 2015 10:40:38 +0000 (19:40 +0900)]
YaGL: Removed a deprecated attribute

The 'kCGLPFAPBuffer' attribute is deprecated in OS X v10.7.
On some systems, cannot supported the multi-sampling by the deprecated attribute.

Change-Id: I491bda77141d6913c8e4068a6df890bffad1223f
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
(cherry picked from commit 26fbd74709b4001317d467b9b97ec4e64ccdec27)

8 years agoYaGL: Removed a deprecated attribute
jinhyung.jo [Mon, 21 Sep 2015 10:40:38 +0000 (19:40 +0900)]
YaGL: Removed a deprecated attribute

The 'kCGLPFAPBuffer' attribute is deprecated in OS X v10.7.
On some systems, cannot supported the multi-sampling by the deprecated attribute.

Change-Id: I491bda77141d6913c8e4068a6df890bffad1223f
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
(cherry picked from commit 26fbd74709b4001317d467b9b97ec4e64ccdec27)

8 years agonet: avoid infinite loop when receiving packets(CVE-2015-5278)
P J P [Tue, 15 Sep 2015 11:16:59 +0000 (16:46 +0530)]
net: avoid infinite loop when receiving packets(CVE-2015-5278)

Ne2000 NIC uses ring buffer of NE2000_MEM_SIZE(49152)
bytes to process network packets. While receiving packets
via ne2000_receive() routine, a local 'index' variable
could exceed the ring buffer size, leading to an infinite
loop situation.

Reported-by: Qinghao Tang <luodalongde@gmail.com>
Signed-off-by: P J P <pjp@fedoraproject.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 737d2b3c41d59eb8f94ab7eb419b957938f24943)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
8 years agonet: add checks to validate ring buffer pointers(CVE-2015-5279)
P J P [Tue, 15 Sep 2015 11:10:49 +0000 (16:40 +0530)]
net: add checks to validate ring buffer pointers(CVE-2015-5279)

Ne2000 NIC uses ring buffer of NE2000_MEM_SIZE(49152)
bytes to process network packets. While receiving packets
via ne2000_receive() routine, a local 'index' variable
could exceed the ring buffer size, which could lead to a
memory buffer overflow. Added other checks at initialisation.

Reported-by: Qinghao Tang <luodalongde@gmail.com>
Signed-off-by: P J P <pjp@fedoraproject.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 9bbdbc66e5765068dce76e9269dce4547afd8ad4)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
8 years agoe1000: Avoid infinite loop in processing transmit descriptor (CVE-2015-6815)
P J P [Fri, 4 Sep 2015 16:21:06 +0000 (17:21 +0100)]
e1000: Avoid infinite loop in processing transmit descriptor (CVE-2015-6815)

While processing transmit descriptors, it could lead to an infinite
loop if 'bytes' was to become zero; Add a check to avoid it.

[The guest can force 'bytes' to 0 by setting the hdr_len and mss
descriptor fields to 0.
--Stefan]

Signed-off-by: P J P <pjp@fedoraproject.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 1441383666-6590-1-git-send-email-stefanha@redhat.com
(cherry picked from commit b947ac2bf26479e710489739c465c8af336599e7)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
8 years agovnc: fix memory corruption (CVE-2015-5225)
Gerd Hoffmann [Mon, 17 Aug 2015 17:56:53 +0000 (19:56 +0200)]
vnc: fix memory corruption (CVE-2015-5225)

The _cmp_bytes variable added by commit "bea60dd ui/vnc: fix potential
memory corruption issues" can become negative.  Result is (possibly
exploitable) memory corruption.  Reason for that is it uses the stride
instead of bytes per scanline to apply limits.

For the server surface is is actually fine.  vnc creates that itself,
there is never any padding and thus scanline length always equals stride.

For the guest surface scanline length and stride are typically identical
too, but it doesn't has to be that way.  So add and use a new variable
(guest_ll) for the guest scanline length.  Also rename min_stride to
line_bytes to make more clear what it actually is.  Finally sprinkle
in an assert() to make sure we never use a negative _cmp_bytes again.

Reported-by: 范祚至(库特) <zuozhi.fzz@alibaba-inc.com>
Reviewed-by: P J P <ppandit@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit eb8934b0418b3b1d125edddc4fc334a54334a49b)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
8 years agobuild: linking C/C++ libraries statically
SeokYeon Hwang [Fri, 18 Sep 2015 06:39:16 +0000 (15:39 +0900)]
build: linking C/C++ libraries statically

Toolchains for Win32 used various pthread models and exception handler
models. So we choose to use statically linking C/C++ libraries to avoid
DLL conflict.
(To avoid the problem, we can compile all dependant libararies using same
toolchain, but it needs many efforts and has no many benefits.)

Change-Id: Ie7f116c9872472382d9e2351b239df9e125617a4
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agobuild: remove redundant scripts
SeokYeon Hwang [Wed, 16 Sep 2015 05:06:05 +0000 (14:06 +0900)]
build: remove redundant scripts

DIBS does not run build script with command argument. So we can
remove some lines.

Change-Id: Id4e1d05e07e47f2e9e02ef92eab417e62f9f5c5f
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoMakefile: remove unnecessary rules
SeokYeon Hwang [Wed, 16 Sep 2015 04:52:03 +0000 (13:52 +0900)]
Makefile: remove unnecessary rules

".o" from ".cpp" is already defined in "rules.mak".

Change-Id: I2943d1a2674618e8c684290c476029d649c3149c
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agobuild: commonize preparations for build
SeokYeon Hwang [Wed, 16 Sep 2015 04:51:26 +0000 (13:51 +0900)]
build: commonize preparations for build

Change-Id: Ic438661885c0634029a23fbc626fc729f06fbdeb
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agokeyboard: fixed undefined build error
sungmin ha [Wed, 16 Sep 2015 01:58:24 +0000 (10:58 +0900)]
keyboard: fixed undefined build error

Change-Id: I4d0549529e8b2f722cd0cf3d3447c2dd22728e5a
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
8 years agoui: declare some getter/setter wrapper fucntions for UiInfomation class
GiWoong Kim [Mon, 14 Sep 2015 08:23:23 +0000 (17:23 +0900)]
ui: declare some getter/setter wrapper fucntions for UiInfomation class

Change-Id: I99d2c8ad1999eef88da3c70272e880ff08ef4215
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoui: declare some getter/setter wrapper fucntions for UiState class
GiWoong Kim [Mon, 14 Sep 2015 06:21:18 +0000 (15:21 +0900)]
ui: declare some getter/setter wrapper fucntions for UiState class

Change-Id: Ie6b97283ea8cfe39cd58a5e7e9bb8166e7ed791f
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoui: declare some getter/setter wrapper fucntions
GiWoong Kim [Mon, 14 Sep 2015 04:47:04 +0000 (13:47 +0900)]
ui: declare some getter/setter wrapper fucntions

Change-Id: Iba5f6a7e169254f54ab62aecc8cd91ab7bd2bfd1
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoconfigure: delete duplicated lines
GiWoong Kim [Mon, 14 Sep 2015 10:53:49 +0000 (19:53 +0900)]
configure: delete duplicated lines

"--enable-java-ui" option has already defined at CONFIGURE_APPEND for common.

Change-Id: Ib34a7fcb349d43e21f7e891470f7ea158b57a07b
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoMakefile: standalone-src should be cleaned befor qemu distclean
SeokYeon Hwang [Mon, 14 Sep 2015 05:12:00 +0000 (14:12 +0900)]
Makefile: standalone-src should be cleaned befor qemu distclean

A "clean" in standalone-src is depend on "config-host.mak". So it should
be run before qemu distclean, since qemu distclean remove "config-host.mak"

Change-Id: I87e6f097863ed3aec0a99f0be9b9f394902ea298
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agokeyboard: fixed unlimited input for mac
sungmin ha [Mon, 14 Sep 2015 07:38:27 +0000 (16:38 +0900)]
keyboard: fixed unlimited input for mac

fixed bug of key state (caps lock and shift)

Change-Id: I1466b24bd3fdf734d28c9be96636281fe737133a
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
8 years agobuild: removed statement in Makefile only for DIBS
SeokYeon Hwang [Thu, 10 Sep 2015 12:19:10 +0000 (21:19 +0900)]
build: removed statement in Makefile only for DIBS

Makefile should be indenpendant from build system. So all tasks only for DIBS is
moved to DIBS build script.

Change-Id: I39f66a29fef448ec2ade1aa0664924a8eca3fd0e
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agobuild: enabled cross-build for Win32 target in DIBS
SeokYeon Hwang [Thu, 10 Sep 2015 08:14:15 +0000 (17:14 +0900)]
build: enabled cross-build for Win32 target in DIBS

Change-Id: Ia559d80514029b53d4f4472626ae9d67c8686eff
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agocontroller: fix wrong condition
GiWoong Kim [Thu, 10 Sep 2015 11:38:12 +0000 (20:38 +0900)]
controller: fix wrong condition

Change-Id: Ifaee282a00ff9c15b9ba4bfc05d0c9036f6556d9
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
(cherry picked from commit 0db5e574dc7f4a9f98fd4fd57daf8bafb5aca893)

8 years agopackage: version up
GiWoong Kim [Thu, 10 Sep 2015 11:42:03 +0000 (20:42 +0900)]
package: version up

2.2.65

Change-Id: I7714a8f8e4db59c56f8222c662a2d43e7ec0cc91
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agocontroller: fix wrong condition
GiWoong Kim [Thu, 10 Sep 2015 11:38:12 +0000 (20:38 +0900)]
controller: fix wrong condition

Change-Id: Ifaee282a00ff9c15b9ba4bfc05d0c9036f6556d9
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoMerge branch 'tizen_2.4_develop' into tizen_3.0_develop
SeokYeon Hwang [Thu, 10 Sep 2015 08:10:13 +0000 (17:10 +0900)]
Merge branch 'tizen_2.4_develop' into tizen_3.0_develop

Change-Id: I0f07cd5664457d0fa84c5a91fb402a5c7da060c3
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agobuild: modified libav configuration script.
Park Kyoung Won [Thu, 10 Sep 2015 06:06:42 +0000 (15:06 +0900)]
build: modified libav configuration script.

- added disable-libav configure option

Change-Id: I629ee3efb7aeaff42848788952a4940a4a050229
Signed-off-by: Park Kyoung Won <kw0712.park@samsung.com>
(cherry picked from commit 32470019bf470c2301fdfe82d4e36a356a8800c9)

8 years agobuild: modified libav configuration script.
Park Kyoung Won [Thu, 10 Sep 2015 06:06:42 +0000 (15:06 +0900)]
build: modified libav configuration script.

- added disable-libav configure option

Change-Id: I629ee3efb7aeaff42848788952a4940a4a050229
Signed-off-by: Park Kyoung Won <kw0712.park@samsung.com>
8 years agodibs: prepared cross building on DIBS
SeokYeon Hwang [Wed, 9 Sep 2015 13:52:05 +0000 (22:52 +0900)]
dibs: prepared cross building on DIBS

Change-Id: I2e669d1fb8cc7507608bcd898ac5cde740ca872d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoqt5_msgbox: correct Makefile
SeokYeon Hwang [Wed, 9 Sep 2015 13:31:14 +0000 (22:31 +0900)]
qt5_msgbox: correct Makefile

qt5_msgbox target binary should deal with its suffix.

Change-Id: Ia11cdc536042aefbe531cb49760cc2cb50cf6f36
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoextra: replace 4 space with tab
Munkyu Im [Wed, 9 Sep 2015 06:02:06 +0000 (15:02 +0900)]
extra: replace 4 space with tab

script files uses tab instead of spaces.

Change-Id: I8c436043f02648ee08fdacc50ab4ba087206fbab
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agoMerge branch 'tizen_3.0_qemu_2.4' into tizen_3.0_develop
SeokYeon Hwang [Wed, 9 Sep 2015 06:04:25 +0000 (15:04 +0900)]
Merge branch 'tizen_3.0_qemu_2.4' into tizen_3.0_develop

Change-Id: Id041f1c920109207df64105feabf237dba5cbe37
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoxml: modified error message for skin loading failure
GiWoong Kim [Tue, 8 Sep 2015 10:19:11 +0000 (19:19 +0900)]
xml: modified error message for skin loading failure

Change-Id: I944ba391081a056a26deb5798bacc808b7cc74eb
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoMerge branch 'tizen_2.4_develop' into tizen_3.0_develop
SeokYeon Hwang [Wed, 9 Sep 2015 05:34:17 +0000 (14:34 +0900)]
Merge branch 'tizen_2.4_develop' into tizen_3.0_develop

Change-Id: Ibf4bc4ff0d810ce2653b248a896de7fd61497a98
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agospice: fixed problem of displaying emulator skin
sungmin ha [Tue, 8 Sep 2015 04:24:02 +0000 (13:24 +0900)]
spice: fixed problem of displaying emulator skin

When the emulator is booted up with "-spice" option,
the emulator skin should not be displayed.

Change-Id: Ic1e6a73b91cc8ba4ea99e44da14e16e3e170c034
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
8 years agoecs: wrap sdb command and path with double quotes
ChulHo Song [Tue, 8 Sep 2015 10:53:19 +0000 (19:53 +0900)]
ecs: wrap sdb command and path with double quotes

Change-Id: I7c580e211cd7dd5f5edf012ea289f24c4d1ea474
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
8 years agoconfigure: modified check_libav function.
Park Kyoung Won [Tue, 8 Sep 2015 09:16:38 +0000 (18:16 +0900)]
configure: modified check_libav function.

- The x264 package requires libav packages.
- Display an error message if x264 package is not installed.

Change-Id: I47f230df7a0aef5cb4b7aba3af5c5ccd9033a4e1
Signed-off-by: Park Kyoung Won <kw0712.park@samsung.com>
8 years agopackage: version up(2.2.64)
Munkyu Im [Tue, 8 Sep 2015 07:17:27 +0000 (16:17 +0900)]
package: version up(2.2.64)

Change-Id: I18c872403b4c2e95382666638d60f2c880bee60e
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agotap: wrap with double quotes
Munkyu Im [Tue, 8 Sep 2015 07:15:57 +0000 (16:15 +0900)]
tap: wrap with double quotes

to support launching that executable binary has space character.

Change-Id: I00b1f896369274957ab49da649146ddad056e9cb
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agoosutil: move making/checking vm lock position
Munkyu Im [Tue, 8 Sep 2015 06:53:23 +0000 (15:53 +0900)]
osutil: move making/checking vm lock position

move it after initializing device.
otherwise cannot get drive image path.

Change-Id: I22c730a6410cd7cb36ee3c4830370b5616dbfdd7
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agoqt5_msgbox: fixed wrong action for building qt5_msgbox
SeokYeon Hwang [Fri, 4 Sep 2015 11:51:07 +0000 (20:51 +0900)]
qt5_msgbox: fixed wrong action for building qt5_msgbox

Change-Id: I1f05997c72c816dcf6b8fff788e13c7e20bfaaf4
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoos-win32.h: Suppress warning -Wredundant-decls
SeokYeon Hwang [Wed, 2 Sep 2015 04:14:39 +0000 (13:14 +0900)]
os-win32.h: Suppress warning -Wredundant-decls

"time.h" in some distributions aleady has gmtime_r(), localtime_r()
as a real function prototype (not a macro). So we should suppress
warning "-Wredundnat-decls" for them.

Change-Id: I8b2764d5c6d1b136b2a3dcc862d52b785d8a5855
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoconfigure: fixed logic when "--enable-error" is specified
SeokYeon Hwang [Wed, 2 Sep 2015 04:07:37 +0000 (13:07 +0900)]
configure: fixed logic when "--enable-error" is specified

If "--enable-error" is specified, "configure" had not tried to set
CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE.
To fixed this problem "configure" should skip setting "werror" only.

Change-Id: I6d204ca25d242aa8b2e9c12fd8f1f1f85dcad9f4
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoconfigure: "CROSS_PREFIX" is introduced for cross-compiling
SeokYeon Hwang [Sun, 30 Aug 2015 08:34:56 +0000 (17:34 +0900)]
configure: "CROSS_PREFIX" is introduced for cross-compiling

If "CROSS_PREFIX" or "--cross-prefix" is provided, "emulator_configure.sh"
prepare cross-compiling environments.
Applied "--static-libgcc" and "--static-libstdc++" for static linking
compiler libraries.

Change-Id: Id095e43eb00cffdfe635d1cec404549b364c5940
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agohax: used proper format for printing special types
SeokYeon Hwang [Sun, 30 Aug 2015 07:46:34 +0000 (16:46 +0900)]
hax: used proper format for printing special types

Change-Id: I38366f99fc6162ac41964b6186e463922d448e32
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoyagl: for cross-compiling, header name should be case-sensitive
SeokYeon Hwang [Sun, 30 Aug 2015 07:45:19 +0000 (16:45 +0900)]
yagl: for cross-compiling, header name should be case-sensitive

Change-Id: I4b679792cbf374ba6cbf7d918669df4c2895c03a
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoRevert "timer: fix qemu_poll_ns early timeout on windows"
SeokYeon Hwang [Sun, 30 Aug 2015 07:39:30 +0000 (16:39 +0900)]
Revert "timer: fix qemu_poll_ns early timeout on windows"

This reverts commit b611841324d3d95b8f0adbaf22a27d53cd83b858.
Same commit applied in upstream in diffent way as a
commit 5a007547df76446ab891df93ebc55749716609bf.

Change-Id: I6eedc7f56f3a1f6ef79e39f1b47acf74cd6bdf92
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoscript: fix else statement
Munkyu Im [Tue, 8 Sep 2015 04:16:20 +0000 (13:16 +0900)]
script: fix else statement

"elif" needs condition, but in this case
do not need condition so replace this with "else".

Change-Id: Id2966379d79c579c15f345255a59220f49f3cbd2
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agodibs: cleaned-up DIBS build scripts
SeokYeon Hwang [Fri, 4 Sep 2015 06:14:33 +0000 (15:14 +0900)]
dibs: cleaned-up DIBS build scripts

Change-Id: Ia72722bcca12a9d3eb88d9e8f9a57e76f22c9372
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agomenu: add a kernel file information to VM info of Detailed Info Dialog
GiWoong Kim [Fri, 4 Sep 2015 11:27:34 +0000 (20:27 +0900)]
menu: add a kernel file information to VM info of Detailed Info Dialog

Change-Id: Ia530c89469565475275c12b831d6bc9203cef10a
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoconfig: ignoring files on git
GiWoong Kim [Fri, 4 Sep 2015 11:03:20 +0000 (20:03 +0900)]
config: ignoring files on git

.settings
tizen/standalone-src/qt5_msgbox

Change-Id: Id16661c5133120ad64f00f64a90c5cd2b2cabbe2
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agopackage: version up (2.2.63)
sungmin ha [Mon, 7 Sep 2015 07:25:39 +0000 (16:25 +0900)]
package: version up (2.2.63)

Change-Id: I855816cd43ae3e87d6c6c878e3fc0ef7880d690a
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
8 years agocamera: modified camera win32 header to build on mingw-w64
Sungmin Ha [Wed, 2 Sep 2015 06:14:24 +0000 (15:14 +0900)]
camera: modified camera win32 header to build on mingw-w64

Change-Id: Ibcc63a762438f5492eb0445ce5cbca9438b8ddc4
Signed-off-by: Sungmin Ha <sungmin82.ha@samsung.com>
8 years agomenu: clean up some lines
GiWoong Kim [Fri, 4 Sep 2015 08:54:31 +0000 (17:54 +0900)]
menu: clean up some lines

check a SDB file exists before initializing & etc

Change-Id: I8921a0e4d15e466a65d5acb776c489792209702b
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
8 years agoMerge "extra: wrap path with double quotes" into tizen_2.4_develop
Jinhyung Choi [Fri, 4 Sep 2015 11:30:19 +0000 (20:30 +0900)]
Merge "extra: wrap path with double quotes" into tizen_2.4_develop

8 years agopackage: version up(2.2.62)
Munkyu Im [Fri, 4 Sep 2015 09:26:57 +0000 (18:26 +0900)]
package: version up(2.2.62)

Change-Id: Icd0bafcc4c2df9863c3ce49d5f1adb028dde710a
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agosdb: convert to native separator
Munkyu Im [Fri, 4 Sep 2015 09:23:21 +0000 (18:23 +0900)]
sdb: convert to native separator

for windows, convert slash to reverse slash.

Change-Id: I2a049bcb8addf5be0dc8bb11b7bca8e7fa2692d8
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
8 years agoextra: wrap path with double quotes
Munkyu Im [Fri, 4 Sep 2015 07:27:40 +0000 (16:27 +0900)]
extra: wrap path with double quotes

LD_LIBRARY_PATH could be include PATH with space.
sdbscript need this, too.

Change-Id: Ibf3ee8f24bc781dba6a6d68e72c08b18b8b23c86
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>