~vcs-imports/librest/+git/librest:wip/baedert/gtask2

Last commit made on 2016-07-14
Get this branch:
git clone -b wip/baedert/gtask2 https://git.launchpad.net/~vcs-imports/librest/+git/librest

Branch merges

Branch information

Name:
wip/baedert/gtask2
Repository:
lp:~vcs-imports/librest/+git/librest

Recent commits

cbd0e5f... by =?utf-8?q?Timm_B=C3=A4der?= <email address hidden>

oauth-proxy: Add docs for request_token_finish

b11a166... by =?utf-8?q?Timm_B=C3=A4der?= <email address hidden>

Add more missing precondition checks

eb4f757... by =?utf-8?q?Timm_B=C3=A4der?= <email address hidden>

rest-param: Add missing preconditions

534ccf7... by =?utf-8?q?Timm_B=C3=A4der?= <email address hidden>

oauth-proxy: Fix some gtkdoc errors

89afb65... by =?utf-8?q?Timm_B=C3=A4der?= <email address hidden>

oauth-proxy-call: Remove an unnecessary cast

430da59... by =?utf-8?q?Timm_B=C3=A4der?= <email address hidden>

rest-proxy: Fix precondition in new_call

672c2b8... by =?utf-8?q?Timm_B=C3=A4der?= <email address hidden>

rest-proxy: Add some missing preconditions

1c2e5d8... by =?utf-8?q?Timm_B=C3=A4der?= <email address hidden>

examples: Make c89 compatible

3ecac7e... by Christophe Fergeau <email address hidden>

oauth2: Fix SoupUri leak in oauth2_proxy_extract_access_token()

This fixes:

==16342== 93 (64 direct, 29 indirect) bytes in 1 blocks are definitely lost in loss record 211 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F73D42: g_slice_alloc (gslice.c:1025)
==16342== by 0x5F7436D: g_slice_alloc0 (gslice.c:1051)
==16342== by 0x56DA77A: soup_uri_new_with_base (soup-uri.c:283)
==16342== by 0x56DAA42: soup_uri_new (soup-uri.c:519)
==16342== by 0x4E48BB5: oauth2_proxy_extract_access_token (oauth2-proxy.c:384)
==16342== by 0x4009E6: test_url_fragment_no_access_token (oauth2.c:36)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)
==16342==
==16342== 133 (64 direct, 69 indirect) bytes in 1 blocks are definitely lost in loss record 262 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F73D42: g_slice_alloc (gslice.c:1025)
==16342== by 0x5F7436D: g_slice_alloc0 (gslice.c:1051)
==16342== by 0x56DA77A: soup_uri_new_with_base (soup-uri.c:283)
==16342== by 0x56DAA42: soup_uri_new (soup-uri.c:519)
==16342== by 0x4E48BB5: oauth2_proxy_extract_access_token (oauth2-proxy.c:384)
==16342== by 0x400A25: test_access_token_simple (oauth2.c:44)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)
==16342==
==16342== 137 (64 direct, 73 indirect) bytes in 1 blocks are definitely lost in loss record 263 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F73D42: g_slice_alloc (gslice.c:1025)
==16342== by 0x5F7436D: g_slice_alloc0 (gslice.c:1051)
==16342== by 0x56DA77A: soup_uri_new_with_base (soup-uri.c:283)
==16342== by 0x56DAA42: soup_uri_new (soup-uri.c:519)
==16342== by 0x4E48BB5: oauth2_proxy_extract_access_token (oauth2-proxy.c:384)
==16342== by 0x400A97: test_url_encoding_access_token (oauth2.c:51)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)

6b18e2f... by Christophe Fergeau <email address hidden>

tests/oauth2: Fix 'token' leaks

The string returned from oauth2_proxy_extract_access_token() must be
freed. This fixes:

==16342== 27 bytes in 1 blocks are definitely lost in loss record 125 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F75917: g_strndup (gstrfuncs.c:425)
==16342== by 0x56D9BA4: soup_uri_decoded_copy (soup-uri.c:761)
==16342== by 0x4E48C0B: oauth2_proxy_extract_access_token (oauth2-proxy.c:392)
==16342== by 0x400A25: test_access_token_simple (oauth2.c:44)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)
==16342==
==16342== 27 bytes in 1 blocks are definitely lost in loss record 126 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F75917: g_strndup (gstrfuncs.c:425)
==16342== by 0x56D9BA4: soup_uri_decoded_copy (soup-uri.c:761)
==16342== by 0x4E48C0B: oauth2_proxy_extract_access_token (oauth2-proxy.c:392)
==16342== by 0x400A97: test_url_encoding_access_token (oauth2.c:51)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)