platform/core/api/nsd.git
6 weeks agoFix thread-safety issue 33/318333/3 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20241011.164858
Seonah Moon [Tue, 27 Aug 2024 07:46:40 +0000 (16:46 +0900)]
Fix thread-safety issue

Change-Id: I8b23fb9836f1acbfc191fd3bdb85789dca9e5a35

7 months agoFix the crash when browsing is stopped 52/308852/1 accepted/tizen/8.0/unified/20240403.120523
Seonah Moon [Fri, 29 Mar 2024 10:41:38 +0000 (19:41 +0900)]
Fix the crash when browsing is stopped

Removing an item in the iterator can cause a crash.

Change-Id: I071c7d2897172d8f87cda53b4815e1dc3f7db747

12 months agoFix main thread deadlock issue 27/300427/2 accepted/tizen/8.0/unified/20231031.064238
Wootak Jung [Tue, 24 Oct 2023 22:45:27 +0000 (07:45 +0900)]
Fix main thread deadlock issue

If __dnssd_resolve_reply_cb() called in thread, __remove_service_resolve_socket() will be called in main thread.
If main thread is already locked, deadlock can be happened.
Fix resolve_data will be removed in this function not idle time.

GSource should be removed by calling g_source_destroy() not g_source_remove()

Change-Id: I2e2f8accba980073e39a70e9a39ef11b32086314
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
12 months agoFix build error (64bit) 45/300245/1
Seonah Moon [Thu, 19 Oct 2023 07:20:13 +0000 (16:20 +0900)]
Fix build error (64bit)

Change-Id: I76f6d99d68e941a0ad0c56de86afb8cea813e393

12 months agoSSDP: Fix registered_cb bug 60/300160/1
Seonah Moon [Tue, 17 Oct 2023 12:51:49 +0000 (21:51 +0900)]
SSDP: Fix registered_cb bug

Change-Id: I876b43ce3d2485f7dc7451545b4f30ba89df23d3

13 months agoMerge "Add LCOV macro for coverage" into tizen accepted/tizen/8.0/unified/20231005.092812 accepted/tizen/unified/20230912.013617 tizen_8.0_m2_release
Jaehyun Kim [Mon, 11 Sep 2023 08:52:26 +0000 (08:52 +0000)]
Merge "Add LCOV macro for coverage" into tizen

13 months agoAdd LCOV macro for coverage 82/298582/1
Anjali Nijhara [Mon, 11 Sep 2023 05:30:44 +0000 (11:00 +0530)]
Add LCOV macro for coverage

Change-Id: I8cfdbd83f4d7e42a07499c4afe9c111faf6e94b5

14 months agoRemove tests related gcno files 90/298490/1
Anjali Nijhara [Thu, 7 Sep 2023 13:30:46 +0000 (19:00 +0530)]
Remove tests related gcno files

Change-Id: Ic29e0d1afc35d57dded0edceafc0890e1ce15641

2 years agoFix invalid tag 66/282466/1 accepted/tizen/unified/20230306.172223
cheoleun moon [Tue, 4 Oct 2022 05:36:42 +0000 (14:36 +0900)]
Fix invalid tag

Change-Id: Iadb402904a2ed0ebe594a99ae5bc5d28cb0487d4

2 years agoFix USE_AFTER_FREE 05/282105/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.060201 accepted/tizen/7.0/unified/hotfix/20221116.104759 accepted/tizen/unified/20220928.020835 tizen_7.0_m2_release
Seonah Moon [Tue, 27 Sep 2022 06:04:23 +0000 (15:04 +0900)]
Fix USE_AFTER_FREE

Change-Id: I0136d9265a26ca0db3352866b00a8430981bf8b0

2 years agoImplement dnssd_cancel_resolve_service() 37/281937/3
Seonah Moon [Mon, 26 Sep 2022 07:27:48 +0000 (16:27 +0900)]
Implement dnssd_cancel_resolve_service()

Change-Id: I7c2efec8cb47415a3cc9c5219ac8defed637cf1c

2 years agoImplement dnssd_cancel_browse_service 26/281826/1
cheoleun moon [Thu, 22 Sep 2022 07:28:23 +0000 (16:28 +0900)]
Implement dnssd_cancel_browse_service

Change-Id: I93c90e1acbf97e2d3c4ac6d6bd66a62c9c301322

2 years agoChange API names for compatibility 37/281737/2 accepted/tizen/unified/20220922.062120 accepted/tizen/unified/20220922.062742
cheoleun moon [Wed, 21 Sep 2022 07:49:41 +0000 (16:49 +0900)]
Change API names for compatibility

Change-Id: I72f96c175671e1eb3f8d7049a388acb5b0bb6841

2 years agoAdd new dns-sd APIs 16/279616/5
cheoleun moon [Wed, 31 Aug 2022 08:54:10 +0000 (17:54 +0900)]
Add new dns-sd APIs

Change-Id: Ifba18e43e0122af496755b59cfad07aea355139d

2 years agoChange gcov data path 62/277462/1 accepted/tizen/unified/20220711.173909 submit/tizen/20220708.043045
Seonah Moon [Thu, 7 Jul 2022 08:31:00 +0000 (17:31 +0900)]
Change gcov data path

Change-Id: I938da56237335907d409d3986dab4b08513c0ec1

2 years agoFix ipv6 address extraction 88/275288/1 accepted/tizen/unified/20220526.143439 submit/tizen/20220526.030254
Abhay Agarwal [Thu, 19 May 2022 14:04:10 +0000 (19:34 +0530)]
Fix ipv6 address extraction

Fix dnssd_service_get_ip() API issue caused by
wrong copy of ipv6 address.

Change-Id: I735dcbeba2986ec34795dec49f44d5a6f24259e0
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2 years agoFix NULL pointer dereference 42/268942/1 accepted/tizen/unified/20220107.120853 submit/tizen/20220105.095940
Seonah Moon [Wed, 5 Jan 2022 05:40:44 +0000 (14:40 +0900)]
Fix NULL pointer dereference

Change-Id: I9b098d8fcb559ef672a65c79105f83a6e2224474

2 years agodnssd_service_get_ip: return NULL if IP address isn't exist 87/267987/3 accepted/tizen/unified/20211216.155905 submit/tizen/20211214.073937
Seonah Moon [Tue, 14 Dec 2021 07:12:08 +0000 (16:12 +0900)]
dnssd_service_get_ip: return NULL if IP address isn't exist

Change-Id: I7e84cfc1ef4ff8a225457f151eb1d159f54fc6d9

3 years agoMerge "Fix resource leak" into tizen
cheoleun moon [Mon, 6 Sep 2021 04:18:53 +0000 (04:18 +0000)]
Merge "Fix resource leak" into tizen

3 years agoFix resource leak 27/263527/1 accepted/tizen/6.5/unified/20211028.100617 accepted/tizen/unified/20210906.123631 submit/tizen/20210906.043332 submit/tizen_6.5/20211028.161801 tizen_6.5.m2_release
Cheoleun Moon [Mon, 6 Sep 2021 03:55:08 +0000 (12:55 +0900)]
Fix resource leak

Change-Id: I40d6eafff53d385c66a76e0eab0269e3b1f7d6eb
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoMerge "Check a length of interface name" into tizen accepted/tizen/unified/20210831.143850 submit/tizen/20210830.063734
seonah moon [Mon, 30 Aug 2021 02:12:25 +0000 (02:12 +0000)]
Merge "Check a length of interface name" into tizen

3 years agoCheck a length of interface name 00/263100/1
Seonah Moon [Thu, 26 Aug 2021 06:41:14 +0000 (15:41 +0900)]
Check a length of interface name

Change-Id: I3595f5140a905ef59a88945677293e9a285ca12f

3 years agoCheck return values (2) 08/263008/1 accepted/tizen/unified/20210825.020133 submit/tizen/20210824.105149
Cheoleun Moon [Tue, 24 Aug 2021 10:49:46 +0000 (19:49 +0900)]
Check return values (2)

Change-Id: Ida6d1c9eb7210938fd882d4600ea05d929c20443
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoCheck return values 93/262993/2 submit/tizen/20210824.092752
Cheoleun Moon [Tue, 24 Aug 2021 09:19:42 +0000 (18:19 +0900)]
Check return values

Change-Id: If594a5c1606bc22f7bb75da763299a8090e857bd
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoFix svace issues 81/262981/2 submit/tizen/20210824.074648
Cheoleun Moon [Tue, 24 Aug 2021 07:43:31 +0000 (16:43 +0900)]
Fix svace issues

Change-Id: I963d56b8afc22e8de3a04aa2af6e401d5d7d84ef
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoAdd internal APIs to create/destroy remote service 77/262577/4 accepted/tizen/unified/20210819.123206 submit/tizen/20210817.044230 submit/tizen/20210818.091254
Seonah Moon [Fri, 13 Aug 2021 09:09:19 +0000 (18:09 +0900)]
Add internal APIs to create/destroy remote service

Add new APIs for handling a remove service to make browse() and resolve() operate independently.

- Added APIs:
dnssd_create_remote_service()
dnssd_destroy_remote_service()

- how to test
1. Register service
 $ dns-sd -R test _http._tcp local 12345
2. Resolve service using dns-sd-internal-test
 $ dns-sd-internal-test
 1(_http._tcp, test, wlan0) > 5

Change-Id: I7aa95913d6be359db65d4948a67b49711e3e44e2

3 years agoFix typo 86/261886/1 accepted/tizen/unified/20210810.135334 submit/tizen/20210728.074807 submit/tizen/20210810.062636
Cheoleun Moon [Wed, 28 Jul 2021 07:42:09 +0000 (16:42 +0900)]
Fix typo

Change-Id: Id7f811e6504acfbff00f9e054058d94ac7bfcc87
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoGet TXT records on resolved callback 77/260277/2 accepted/tizen/unified/20210624.131823 submit/tizen/20210623.052218
Cheoleun Moon [Wed, 23 Jun 2021 05:12:24 +0000 (14:12 +0900)]
Get TXT records on resolved callback

Change-Id: I88657c9ee6ca57b35b856788ef6a453fa629b40b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoHandle DNSSD_TYPE_FOUND_NOT_RESOLVED case 03/260203/1 accepted/tizen/unified/20210623.125323 submit/tizen/20210622.031635
Cheoleun Moon [Tue, 22 Jun 2021 03:09:24 +0000 (12:09 +0900)]
Handle DNSSD_TYPE_FOUND_NOT_RESOLVED case

Change-Id: Iaab198367cf2fd4d1159ebf2c64dfaf6aa55c438
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoAdd dnssd_service_get_interface 10/259110/1 accepted/tizen/unified/20210602.122346 submit/tizen/20210601.115121
Cheoleun Moon [Tue, 1 Jun 2021 07:28:34 +0000 (16:28 +0900)]
Add dnssd_service_get_interface

Change-Id: Idf065fe6e8b58a207cc50f9aaec4ddc2b90506a9
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoPass a service_handler as the argument of browse_cb 32/259032/1 submit/tizen/20210531.070519 submit/tizen/20210601.065609
Seonah Moon [Mon, 31 May 2021 06:58:11 +0000 (15:58 +0900)]
Pass a service_handler as the argument of browse_cb

Change-Id: I664d9bac99b127d6c786ed69e3b3871174dde95e

3 years agoFirst draft for internal browse/resovle API 94/258894/3 submit/tizen/20210531.043146
Seonah Moon [Thu, 27 May 2021 07:52:00 +0000 (16:52 +0900)]
First draft for internal browse/resovle API

Change-Id: Icb7196abdde5e165bcbcb89d46b6cd7f2d9e3754

3 years agoUse g_io_create_watch and g_source_attach instead of g_io_add_watch 55/258155/4
Cheoleun Moon [Tue, 11 May 2021 09:44:24 +0000 (18:44 +0900)]
Use g_io_create_watch and g_source_attach instead of g_io_add_watch

Change-Id: Ie891c6f01b486b27c052bd0e1a74ba3e4ff41e0e
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoDo not use net-config to launch mdnsd 95/255295/3 accepted/tizen/unified/20210318.060241 submit/tizen/20210317.065443
Cheoleun Moon [Tue, 16 Mar 2021 10:37:55 +0000 (19:37 +0900)]
Do not use net-config to launch mdnsd

Change-Id: I67edbf16d84afcc4dc18ee9299141737fafad35c

3 years agoUse Mutex insted of thread scope variables. 34/239434/11
Tarun Pratap Singh Bhadouria [Fri, 24 Jul 2020 13:31:39 +0000 (19:01 +0530)]
Use Mutex insted of thread scope variables.

Change-Id: I7e825bcbd0cd859a2c61b336e0a08ab3907b36cf
Signed-off-by: Tarun Pratap Singh Bhadouria <tp.bhadouria@samsung.com>
4 years agoMerge "Fix API references" into tizen accepted/tizen/unified/20201102.124458 submit/tizen/20201007.050928 submit/tizen/20201027.033937
cheoleun moon [Thu, 3 Sep 2020 05:36:23 +0000 (05:36 +0000)]
Merge "Fix API references" into tizen

4 years agoFix API references 89/243089/2
Cheoleun Moon [Thu, 3 Sep 2020 05:11:37 +0000 (14:11 +0900)]
Fix API references

Change-Id: Iadd32a513b768cadfbc054c8698f01c688fc336c

4 years agoRevert "Fix API references"
Cheoleun Moon [Thu, 3 Sep 2020 05:21:24 +0000 (14:21 +0900)]
Revert "Fix API references"

This reverts commit dcdd81f876384e1eb58d1227b31b7e9cf2fafec0.

4 years agoFix API references
Cheoleun Moon [Thu, 3 Sep 2020 05:11:37 +0000 (14:11 +0900)]
Fix API references

Change-Id: Iadd32a513b768cadfbc054c8698f01c688fc336c

4 years agoHandle virtual header allocation failure to deliver_request on test 70/240070/2 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121942 accepted/tizen/6.0/unified/hotfix/20201103.004230 accepted/tizen/6.0/unified/hotfix/20201103.051255 accepted/tizen/unified/20200814.123131 submit/tizen/20200813.070305 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
Yu [Mon, 3 Aug 2020 05:08:13 +0000 (14:08 +0900)]
Handle virtual header allocation failure to deliver_request on test

Change-Id: I7e0d9041b4a2dd4667163e98ef716f265ee88a9a
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
4 years agoReplace strcpy with strncpy 73/239473/1 accepted/tizen/unified/20200730.063254 submit/tizen/20200728.015117
Cheoleun Moon [Mon, 27 Jul 2020 04:51:55 +0000 (13:51 +0900)]
Replace strcpy with strncpy

Change-Id: I8cf4f94a9115d058d2eb6cf2ccb198ca498e870e

4 years agoFix memory leak 71/239471/1
Cheoleun Moon [Mon, 27 Jul 2020 04:44:02 +0000 (13:44 +0900)]
Fix memory leak

Change-Id: I82caac7a12929e7c584ce210c9e10a96216baccc

4 years agoMove unittest into tests 25/238425/2 accepted/tizen/unified/20200717.124734 submit/tizen/20200716.050013
Yu [Tue, 14 Jul 2020 01:44:44 +0000 (10:44 +0900)]
Move unittest into tests

Change-Id: I48a15e02c90d0326a5b3324165aa4d2eb2ec3942
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
4 years agoAdd gtest to get coverage data 09/237309/5 submit/tizen/20200713.070339
Yu [Mon, 29 Jun 2020 05:00:15 +0000 (14:00 +0900)]
Add gtest to get coverage data

Change-Id: I85dd3b4385be8237e6b57a4cdb19645767316108
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
4 years agoReplace codes that repeat several times 08/237308/1
Yu [Mon, 29 Jun 2020 04:58:19 +0000 (13:58 +0900)]
Replace codes that repeat several times

Change-Id: Idf4e6bbaaae9e8ff5ef5e89d81fa13bc65d9cf7e
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
4 years agoPrint proper error code for DNS-SD 12/235212/2 accepted/tizen/unified/20200608.211145 submit/tizen/20200608.074221
Yu [Wed, 3 Jun 2020 00:03:47 +0000 (09:03 +0900)]
Print proper error code for DNS-SD

Change-Id: Idf754b48d2d2420fc089ffdc323c4f90927149c9
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
4 years agodoc: Change reference link #2 90/219090/1
Seonah Moon [Mon, 2 Dec 2019 04:42:06 +0000 (13:42 +0900)]
doc: Change reference link #2

Change-Id: Idc5f0e7427f98248fc7df2d5f0a0be12747cc66b

4 years agodoc: Change reference link #2 87/219087/1
Seonah Moon [Mon, 2 Dec 2019 04:42:06 +0000 (13:42 +0900)]
doc: Change reference link #2

Change-Id: Idc5f0e7427f98248fc7df2d5f0a0be12747cc66b

4 years agodoc: change reference link 10/218910/1
Seonah Moon [Fri, 29 Nov 2019 04:43:22 +0000 (13:43 +0900)]
doc: change reference link

Change-Id: Id136d9a161281e22d2071f14d5f38a7e9d13f7af

4 years agodoc: change reference link 08/218908/1
Seonah Moon [Fri, 29 Nov 2019 04:43:22 +0000 (13:43 +0900)]
doc: change reference link

Change-Id: Id136d9a161281e22d2071f14d5f38a7e9d13f7af

5 years agoRemove invalid memory access 91/210791/1 accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.030512 accepted/tizen/5.5/unified/mobile/hotfix/20201027.065220 accepted/tizen/5.5/unified/wearable/hotfix/20201027.121201 accepted/tizen/unified/20190809.035649 submit/tizen/20190808.035002 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 submit/tizen_5.5_wearable_hotfix/20201026.184302 tizen_5.5.m2_release
Cheoleun Moon [Thu, 25 Jul 2019 00:11:54 +0000 (09:11 +0900)]
Remove invalid memory access

Change-Id: I22774f2d8041328772728b383edca2de4f9ef6b3
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoMake a gcov package for coverage 65/208865/1 accepted/tizen/unified/20190705.110726 submit/tizen/20190702.011709 submit/tizen/20190704.043443 submit/tizen/20190705.002457 submit/tizen/20190705.002836
Cheoleun Moon [Mon, 1 Jul 2019 01:51:47 +0000 (10:51 +0900)]
Make a gcov package for coverage

Change-Id: I0070c5b71f26233c2697c870864cb544fc7e0218
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoFix doxygen #2 24/205224/1 accepted/tizen/unified/20190502.112838 submit/tizen/20190502.001050
Seonah Moon [Tue, 30 Apr 2019 08:28:23 +0000 (17:28 +0900)]
Fix doxygen #2

Change-Id: I0ddbd3126cd0827b8849452fee098aaacbfe646d

5 years agoFix doxygen 65/205165/1 submit/tizen/20190430.024353
Cheoleun Moon [Tue, 30 Apr 2019 01:44:18 +0000 (10:44 +0900)]
Fix doxygen

Change-Id: I55d4f6e197c0789b3254a2989fe2b35f83225a20
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoFix heap-use-after-free issue 53/204853/1 accepted/tizen/unified/20190429.103813 submit/tizen/20190429.012857
Cheoleun Moon [Mon, 29 Apr 2019 01:18:34 +0000 (10:18 +0900)]
Fix heap-use-after-free issue

Change-Id: If84ff301e9dd0ec05150210986e38e02d8e76518
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoRemove useless local variables 15/202115/2 accepted/tizen/unified/20190325.070948 submit/tizen/20190325.013255
Cheoleun Moon [Mon, 25 Mar 2019 01:18:39 +0000 (10:18 +0900)]
Remove useless local variables

Change-Id: I52e6dffea4a4ddbbf18c6fc9bec8884a0dd3f22f
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years ago[ASAN] Fix heap-use-after-free (2) 14/202114/1
Cheoleun Moon [Mon, 25 Mar 2019 00:57:20 +0000 (09:57 +0900)]
[ASAN] Fix heap-use-after-free (2)

After a DNSServiceRef was released in dnssd_deregister_local_service(), it is
accessed in __dnssd_process_result(). It is because
a socket I/O event happened before the DNSServiceRef was released and as
a result __dnssd_process_result() was added to event loop.

Change-Id: I94d8bd45009b06ee63a52f726aaf8ce1a2cccf97
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years ago[ASAN] Fix heap-use-after-free 05/201905/2
Cheoleun Moon [Thu, 21 Mar 2019 01:01:03 +0000 (10:01 +0900)]
[ASAN] Fix heap-use-after-free

DNSServiceRef of a registered service is freed but not assigned to NULL.
It leads to read the DNSServiceRef value in the next call.

Change-Id: I3e9f6e31c89ddb26c8ef09268a5fcdcc464837e9
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoFix resource leak (SATIZENVUL-1629, 1630, 1632, 1633) 23/191423/4 accepted/tizen/unified/20181107.082026 submit/tizen/20181106.045243
Cheoleun Moon [Wed, 17 Oct 2018 04:43:57 +0000 (13:43 +0900)]
Fix resource leak (SATIZENVUL-1629, 1630, 1632, 1633)

Change-Id: I5e937d5fec56a02ef1fd7ab99949e2aa7cfa7ad2
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoReduce dbus timeout value to 15 second 82/188882/1 accepted/tizen/5.0/unified/20181102.013917 accepted/tizen/unified/20180917.041342 submit/tizen/20180912.042809 submit/tizen/20180916.233341 submit/tizen_5.0/20181101.000002
Aditya Raj [Tue, 11 Sep 2018 17:04:30 +0000 (22:34 +0530)]
Reduce dbus timeout value to 15 second

120 second is long time for dbus timeout so changed it to 15 second

Change-Id: I460729c9e1de089d588efc3c7d4b76e3a65ae1f0
Signed-off-by: Aditya Raj <aditya1.raj@samsung.com>
6 years agoFix typo 10/187710/1 accepted/tizen/unified/20180829.142537 submit/tizen/20180828.043551
chleun.moon [Tue, 28 Aug 2018 04:25:13 +0000 (13:25 +0900)]
Fix typo

Change-Id: I2f5f0dd3fe11ada26aff4cb4a0024fd064afb88b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Change-Id22: Id17188a5470a8165dcde400bfdc4994702636664
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoFixed invalid read issue when printing txt_record 56/187156/1 accepted/tizen/unified/20180822.093801 submit/tizen/20180821.002826
Saurav Babu [Mon, 20 Aug 2018 09:23:27 +0000 (14:53 +0530)]
Fixed invalid read issue when printing txt_record

g_strdup only duplicates the string where as here it was required to
copy txt_len bytes. When txt_len is greater than length of txt_record
then invalid read issue occured as only length of txt_record was copied

Change-Id: Ifda849d7b24a030a38bc5bfcff870ac66b044588
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years ago[CID-77971,76678] Fix memory leak 46/175746/2 accepted/tizen/unified/20180413.073628 submit/tizen/20180413.011058
Seonah Moon [Thu, 12 Apr 2018 05:55:57 +0000 (14:55 +0900)]
[CID-77971,76678] Fix memory leak

Change-Id: I2fba599c04755753180231feb25b546861a793e4

6 years ago[CID-74740] Fix memory leak 31/174631/2 accepted/tizen/unified/20180406.062028 submit/tizen/20180404.081806
Seonah Moon [Tue, 3 Apr 2018 08:28:05 +0000 (17:28 +0900)]
[CID-74740] Fix memory leak

Change-Id: I4c72aa17511b632986b51fd9e405888611f139e3

6 years agoFix memory leak - test_found_cb 95/174495/1 accepted/tizen/unified/20180406.062056 submit/tizen/20180403.231154
Taesoo Jun [Mon, 2 Apr 2018 10:47:55 +0000 (19:47 +0900)]
Fix memory leak - test_found_cb

Change-Id: I1be91624807e9c0df7d9bcee7cf64dfa5f517339

6 years ago[SSDP] Bug fix 51/174051/2 accepted/tizen/unified/20180403.182505 submit/tizen/20180329.042536
chleun.moon [Tue, 27 Mar 2018 23:19:54 +0000 (08:19 +0900)]
[SSDP] Bug fix

Change-Id: I72800955ba2b3e0c58be9e8126ccf68995ddd8a3
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoMerge "nsd: Fixed issue in which socket is being closed twice" into tizen accepted/tizen/unified/20180316.062514 accepted/tizen/unified/20180320.141344 submit/tizen/20180315.075559 submit/tizen/20180318.231541 submit/tizen/20180320.043504
cheoleun moon [Wed, 14 Mar 2018 08:20:19 +0000 (08:20 +0000)]
Merge "nsd: Fixed issue in which socket is being closed twice" into tizen

6 years agoFix not null terminated string 11/172211/4
Jiung [Mon, 12 Mar 2018 23:50:16 +0000 (08:50 +0900)]
Fix not null terminated string

Change-Id: Ie3ac0e977876dd2f59ca3fcdc5be44f67240bd69
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
6 years agonsd: Fixed issue in which socket is being closed twice 59/172059/1
Saurav Babu [Fri, 9 Mar 2018 09:10:23 +0000 (14:40 +0530)]
nsd: Fixed issue in which socket is being closed twice

Change-Id: I3cdbe4d9e93e205727e6dac6165dc86d473e67b8
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoFix api reference 33/165933/1 accepted/tizen/unified/20180108.062541 submit/tizen/20180105.051034
chleun.moon [Fri, 5 Jan 2018 02:11:03 +0000 (11:11 +0900)]
Fix api reference

Change-Id: I885f9f1a5ae49ef7fccc3d2d8c7d56598f740992
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years ago[DNS-SD] Fix bug 31/159931/1 accepted/tizen/unified/20171114.062738 submit/tizen/20171114.015921
chleun.moon [Tue, 14 Nov 2017 00:48:52 +0000 (09:48 +0900)]
[DNS-SD] Fix bug

Change-Id: If301c7114fe8cd9e73c3c63d67459c860884af07
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
7 years agoimprove line Coverage 83/154483/1 accepted/tizen/unified/20171011.150228 submit/tizen/20171011.035354
chleun.moon [Tue, 10 Oct 2017 09:11:17 +0000 (18:11 +0900)]
improve line Coverage

Change-Id: I339ac3b3368e715bae5721ef5fa1dc134f91bfd0
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
7 years ago[CID-33513, 41081] Fix bug 36/154336/2 accepted/tizen/unified/20171011.065858 submit/tizen/20171010.084928
chleun.moon [Tue, 10 Oct 2017 05:33:57 +0000 (14:33 +0900)]
[CID-33513, 41081] Fix bug

Change-Id: I1acbbc947b7ad7458f2914caf5f3e309401c2c3a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
7 years ago[CID-24737, 27526, 31321] Fix bugs 84/153184/1 accepted/tizen/unified/20170929.081859 submit/tizen/20170928.232941
chleun.moon [Thu, 28 Sep 2017 05:14:19 +0000 (14:14 +0900)]
[CID-24737, 27526, 31321] Fix bugs

Change-Id: I38e98e9cc89b0be19d4d8237c503ba1370acb219
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
7 years ago[DNS-SD] Revert the wrong modification 27/150827/1 accepted/tizen/unified/20170921.072219 submit/tizen/20170920.020838
chleun.moon [Tue, 19 Sep 2017 01:00:55 +0000 (10:00 +0900)]
[DNS-SD] Revert the wrong modification

Change-Id: Ieedff7bf8eb0f74252c3535d4e88b225138d4629
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
7 years agovariable initialization for safe code 16/148216/1 accepted/tizen/unified/20170913.071038 submit/tizen/20170911.125730
Taesoo Jun [Thu, 7 Sep 2017 06:40:00 +0000 (15:40 +0900)]
variable initialization for safe code

Change-Id: I66e7ed089b4f38e74b178073d503297c8057a894

7 years agovariable initialization for safe code 15/148215/1
Taesoo Jun [Thu, 7 Sep 2017 06:37:25 +0000 (15:37 +0900)]
variable initialization for safe code

Change-Id: I4e99621f52323dec4f8a966ef635d3623381dcf9

7 years agoAdd codes to check internet privilege 34/146134/1 accepted/tizen/unified/20170901.025936 submit/tizen/20170825.060613 submit/tizen/20170830.065642
chleun.moon [Fri, 25 Aug 2017 06:00:55 +0000 (15:00 +0900)]
Add codes to check internet privilege

Change-Id: Iaed13fc5e5d3e3f38e73b06b59b9d04f482ac413
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agoMerge "nsd: Remove resolve and getaddrinfo sockets when browsing is stopped" into... accepted/tizen/4.0/unified/20170828.223843 accepted/tizen/unified/20170811.133325 submit/tizen/20170811.041528 submit/tizen_4.0/20170828.100002
taesub kim [Wed, 9 Aug 2017 23:05:33 +0000 (23:05 +0000)]
Merge "nsd: Remove resolve and getaddrinfo sockets when browsing is stopped" into tizen

7 years ago[ACR-1019] Add internet privilege 42/137342/4
chleun.moon [Wed, 5 Jul 2017 08:57:28 +0000 (17:57 +0900)]
[ACR-1019] Add internet privilege

Change-Id: Ifb0b916780c725bc73bdcec88bc7164d3cd5c9b8
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agonsd: Remove resolve and getaddrinfo sockets when browsing is stopped 37/143337/2
Saurav Babu [Wed, 9 Aug 2017 09:44:04 +0000 (15:14 +0530)]
nsd: Remove resolve and getaddrinfo sockets when browsing is stopped

Change-Id: If8b676cf8df6ad51b5acbfe4f87c8ee0f5afb500
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years ago[SSDP] gssdp_resource_group_set_available should be called before gssdp_resource_grou... 58/143058/1 accepted/tizen/unified/20170811.021054 submit/tizen/20170809.085632
chleun.moon [Tue, 8 Aug 2017 09:19:13 +0000 (18:19 +0900)]
[SSDP] gssdp_resource_group_set_available should be called before gssdp_resource_group_remove_resource

Change-Id: I2f310b5aa2b2336ce03900de910f8e62f9a63b16
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agoFix memory leak (WGID-253281) 68/134468/1 accepted/tizen/4.0/unified/20170816.010631 accepted/tizen/4.0/unified/20170816.014338 accepted/tizen/unified/20170705.162711 submit/tizen/20170620.103311 submit/tizen/20170623.070816 submit/tizen/20170703.033637 submit/tizen/20170705.021515 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
chleun.moon [Mon, 19 Jun 2017 00:46:52 +0000 (09:46 +0900)]
Fix memory leak (WGID-253281)

Change-Id: I0da23fa2ffe7339c71af88274b1aacf774e9825c
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agodnssd: Fix issue where Browse Unavailable callback was not received 02/133702/1 accepted/tizen/unified/20170630.083014 submit/tizen/20170615.020639
Saurav Babu [Tue, 13 Jun 2017 06:52:02 +0000 (12:22 +0530)]
dnssd: Fix issue where Browse Unavailable callback was not received

In a special scenario when registered service name contains "space" then
Browse Unavailable callback was not received when service was
deregistered. This was because mdnsd replaced "space" with "\032" in
DNSServiceResolve callback. This patch fixes the issue by using service
name from DNSServiceBrowse callback rather than DNSServiceResolve
callback

Change-Id: I51388110b9b2d1f210ef6cdd55c0b10199f66a18
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years agoModified API reference feature link 66/130366/1 accepted/tizen/unified/20170531.082410 submit/tizen/20170523.030944
taesub kim [Mon, 22 May 2017 06:40:26 +0000 (15:40 +0900)]
Modified API reference feature link

Change-Id: I6bb72221a08b1f92c2bd896d39c2990253f94fbe
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years agoFix bugs 26/127126/3 accepted/tizen/unified/20170428.032834 submit/tizen/20170427.090631 tizen_4.0.m1_release
chleun.moon [Wed, 26 Apr 2017 08:12:59 +0000 (17:12 +0900)]
Fix bugs

dns-sd: invalid memory access
ssdp: remove found services as stopping browsing

Change-Id: I7a14b665f51a15bf39d66ac6756461499656caa2
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agoFix crash when calling ssdp_stop_browsing_service() 54/123254/1 accepted/tizen/unified/20170406.054810 submit/tizen/20170405.061651
chleun.moon [Wed, 5 Apr 2017 05:30:28 +0000 (14:30 +0900)]
Fix crash when calling ssdp_stop_browsing_service()

Change-Id: I7455e192bd503bcc453486619e119f079eb6ebc8
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agoChange 'Feature List' link 33/122633/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170404.142803 accepted/tizen/ivi/20170404.060825 accepted/tizen/mobile/20170404.060700 accepted/tizen/tv/20170404.060745 accepted/tizen/unified/20170404.060851 accepted/tizen/wearable/20170404.060806 submit/tizen/20170404.011910
chleun.moon [Mon, 3 Apr 2017 05:35:29 +0000 (14:35 +0900)]
Change 'Feature List' link

Change-Id: I1a9e386858ede1849f94c79f253609bbed49bb46
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years ago[ssdp] Add error check 34/121534/2 accepted/tizen/common/20170403.190032 accepted/tizen/ivi/20170403.124600 accepted/tizen/mobile/20170403.124314 accepted/tizen/tv/20170403.124419 accepted/tizen/unified/20170403.124617 accepted/tizen/wearable/20170403.124447 submit/tizen/20170403.015738
chleun.moon [Tue, 28 Mar 2017 07:22:32 +0000 (16:22 +0900)]
[ssdp] Add error check

Check if the target is NULL in ssdp_create_local_service().
SSDP_ERROR_INVALID_PARAMETER is returned when NULL is passed as target

Change-Id: Ibcc9cf094c6935e056961f62556cff16f3105879
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agoMerge "Added NOTICE file" into tizen accepted/tizen/common/20170313.162326 accepted/tizen/ivi/20170313.042630 accepted/tizen/mobile/20170313.042534 accepted/tizen/tv/20170313.042558 accepted/tizen/unified/20170313.042653 accepted/tizen/wearable/20170313.042615 submit/tizen/20170313.001510
taesub kim [Thu, 9 Mar 2017 07:24:18 +0000 (23:24 -0800)]
Merge "Added NOTICE file" into tizen

7 years agoAdded NOTICE file 79/118179/1
taesub kim [Thu, 9 Mar 2017 05:56:47 +0000 (14:56 +0900)]
Added NOTICE file

Change-Id: I99b56742fe5d3e295c6c7acb0f2ff2172c478a03
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years agoFix @detail comments for dnssd_service_add_txt_record 02/116802/1
chleun.moon [Tue, 28 Feb 2017 09:02:11 +0000 (18:02 +0900)]
Fix @detail comments for dnssd_service_add_txt_record

dnssd_service_add_txt_record() has been fixed to allow to call before dnssd_register_local_service()

Change-Id: Iabbb14f825ab6f50bb5f032b56810a76b509150e
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agoNSD: Allow application to add TXT Records at the time of registering service 35/113435/1 accepted/tizen/common/20170210.170527 accepted/tizen/ivi/20170214.011046 accepted/tizen/mobile/20170214.010842 accepted/tizen/tv/20170214.010929 accepted/tizen/unified/20170309.032141 accepted/tizen/wearable/20170214.011014 submit/tizen/20170210.072732 submit/tizen/20170210.083740 submit/tizen_unified/20170308.100405
Saurav Babu [Tue, 7 Feb 2017 12:07:31 +0000 (17:37 +0530)]
NSD: Allow application to add TXT Records at the time of registering service

Change-Id: I0713d24409a805b88e612a5d5813be27d0e4ae9b
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years ago[NSD] Intialize service handler before browsing service 12/110312/1
Saurav Babu [Fri, 13 Jan 2017 17:42:31 +0000 (23:12 +0530)]
[NSD] Intialize service handler before browsing service

service handler's address is passed as an argument to
dnssd_start_browsing_service() so it should always be initialized so
that it is not compared with any garbage/previously assigned values.

Change-Id: Id2ffe5e5623a6b359ced11bd53675395d36f6969
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years agoClose unnecessary socket after use 14/110214/6
Jiung Yu [Fri, 13 Jan 2017 17:55:07 +0000 (23:25 +0530)]
Close unnecessary socket after use

Change-Id: I36430e4d9fe324881d17fc1e50828c4b4f4ff139
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years agoFix warnings when generating 3.0 API reference 27/108927/1
chleun.moon [Fri, 6 Jan 2017 07:59:20 +0000 (16:59 +0900)]
Fix warnings when generating 3.0 API reference

Change-Id: I395866ca14a998f01b7b726037cde5807d6a1a37
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years ago[DNS-SD] Fixed memory leak 16/106216/1 accepted/tizen/common/20161222.131132 accepted/tizen/ivi/20161223.095031 accepted/tizen/mobile/20161223.094938 accepted/tizen/tv/20161223.094950 accepted/tizen/wearable/20161223.095007 submit/tizen/20161222.015926
chleun.moon [Wed, 21 Dec 2016 01:30:02 +0000 (10:30 +0900)]
[DNS-SD] Fixed memory leak

Change-Id: If800fc13339b6a286db35dcc825a12f7c37db2c7
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agoModify the header and documentation 09/105609/2
chleun.moon [Mon, 19 Dec 2016 05:58:26 +0000 (14:58 +0900)]
Modify the header and documentation

Signed-off-by: cheoleun <chleun.moon@samsung.com>
Change-Id: I5bd7524351d87fbc8c7c32ed789ee5c302ec63da

7 years agoFix Svace issues WGID 158459, 158460, 158461 93/102693/2 accepted/tizen/common/20161207.184701 accepted/tizen/ivi/20161208.012348 accepted/tizen/mobile/20161208.012331 accepted/tizen/tv/20161208.012337 accepted/tizen/wearable/20161208.012345 submit/tizen/20161207.113457
Yu Jiung [Tue, 6 Dec 2016 10:14:36 +0000 (19:14 +0900)]
Fix Svace issues WGID 158459, 158460, 158461

Change-Id: Icbe824b55f148e5bf06458e4b48c90b4977b8db3
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
7 years agoFix Svace issue 150323 06/101806/1
Yu Jiung [Fri, 2 Dec 2016 07:19:27 +0000 (16:19 +0900)]
Fix Svace issue 150323

Change-Id: I7dfd8c5dd79295b73824c00c1d59d000e886c657
Signed-off-by: Yu jiung <jiung.yu@samsung.com>