Lines Matching refs:sa
49 zx_handle_t sa, sb; in checkInvalidHandle01() local
50 zx_channel_create(0, &sa, &sb); in checkInvalidHandle01()
51 if (sa == ZX_HANDLE_INVALID) in checkInvalidHandle01()
55 use2(sa); // TODOexpected-warning {{Use of an invalid handle}} in checkInvalidHandle01()
57 zx_handle_close(sa); in checkInvalidHandle01()
61 zx_handle_t sa, sb; in checkInvalidHandle2() local
62 zx_channel_create(0, &sa, &sb); in checkInvalidHandle2()
65 if (sa != ZX_HANDLE_INVALID) in checkInvalidHandle2()
66 zx_handle_close(sa); in checkInvalidHandle2()
70 zx_handle_t sa, sb; in handleDieBeforeErrorSymbol01() local
71 zx_status_t status = zx_channel_create(0, &sa, &sb); in handleDieBeforeErrorSymbol01()
78 zx_handle_t sa, sb; in handleDieBeforeErrorSymbol02() local
79 zx_status_t status = zx_channel_create(0, &sa, &sb); in handleDieBeforeErrorSymbol02()
92 zx_handle_t sa, sb; in checkNoCrash01() local
93 zx_channel_create(0, &sa, &sb); in checkNoCrash01()
94 moreArgs(sa, 1, 2, 3, 4, 5); in checkNoCrash01()
95 lessArgs(sa); in checkNoCrash01()
96 zx_handle_close(sa); in checkNoCrash01()
101 zx_handle_t sa, sb; in checkNoLeak01() local
102 zx_channel_create(0, &sa, &sb); in checkNoLeak01()
103 zx_handle_close(sa); in checkNoLeak01()
122 zx_handle_t sa, sb; in checkNoLeak04() local
123 zx_channel_create(0, &sa, &sb); in checkNoLeak04()
124 zx_handle_close(sa); in checkNoLeak04()
129 zx_handle_t sa, sb; in checkNoLeak05() local
130 zx_channel_create(0, &sa, &sb); in checkNoLeak05()
131 *out1 = sa; in checkNoLeak05()
136 zx_handle_t sa, sb; in checkNoLeak06() local
137 if (zx_channel_create(0, &sa, &sb)) in checkNoLeak06()
139 zx_handle_close(sa); in checkNoLeak06()
144 zx_handle_t sa, sb; in checkLeak01() local
145 if (zx_channel_create(0, &sa, &sb)) // expected-note {{Handle allocated through 2nd parameter}} in checkLeak01()
148 use1(&sa); in checkLeak01()
150 zx_handle_close(sa); in checkLeak01()
158 …zx_handle_t sa = return_handle(); // expected-note {{Function 'return_handle' returns an open hand… in checkLeakFromReturn01() local
159 (void)sa; in checkLeakFromReturn01()
164 zx_handle_t sa, sb; in checkReportLeakOnOnePath() local
165 if (zx_channel_create(0, &sa, &sb)) // expected-note {{Handle allocated through 2nd parameter}} in checkReportLeakOnOnePath()
171 use2(sa); in checkReportLeakOnOnePath()
174 use2(sa); in checkReportLeakOnOnePath()
177 use2(sa); in checkReportLeakOnOnePath()
180 use2(sa); in checkReportLeakOnOnePath()
183 use2(sa); in checkReportLeakOnOnePath()
186 use2(sa); in checkReportLeakOnOnePath()
193 zx_handle_t sa, sb; in checkDoubleRelease01() local
194 zx_channel_create(0, &sa, &sb); in checkDoubleRelease01()
197 zx_handle_close(sa); // expected-note {{Handle released through 1st parameter}} in checkDoubleRelease01()
199 zx_handle_close(sa); // expected-warning {{Releasing a previously released handle}} in checkDoubleRelease01()
205 zx_handle_t sa, sb; in checkUseAfterFree01() local
206 zx_channel_create(0, &sa, &sb); in checkUseAfterFree01()
213 zx_handle_close(sa); // expected-note {{Handle released through 1st parameter}} in checkUseAfterFree01()
214 use1(&sa); // expected-warning {{Using a previously released handle}} in checkUseAfterFree01()
224 zx_handle_t sa, sb, sc; in checkMemberOperatorIndices() local
225 zx_channel_create(0, &sa, &sb); in checkMemberOperatorIndices()
228 sc = t + sa; in checkMemberOperatorIndices()
241 zx_handle_t sa, sb; in checkHandleInStructureUseAfterFree() local
242 zx_channel_create(0, &sa, &sb); // expected-note {{Handle allocated through 3rd parameter}} in checkHandleInStructureUseAfterFree()
247 zx_handle_close(sa); in checkHandleInStructureUseAfterFree()
254 zx_handle_t sa, sb; in checkHandleInStructureUseAfterFree2() local
255 zx_channel_create(0, &sa, &sb); // expected-note {{Handle allocated through 3rd parameter}} in checkHandleInStructureUseAfterFree2()
260 zx_handle_close(sa); in checkHandleInStructureUseAfterFree2()
267 zx_handle_t sa, sb; in checkHandleInStructureLeak() local
268 zx_channel_create(0, &sa, &sb); // expected-note {{Handle allocated through 3rd parameter}} in checkHandleInStructureLeak()
271 zx_handle_close(sa); // expected-warning {{Potential leak of handle}} in checkHandleInStructureLeak()
284 zx_handle_t sa, sb; in checkHandlePtrInStructureUseAfterFree() local
285 zx_channel_create(0, &sa, &sb); in checkHandlePtrInStructureUseAfterFree()
290 zx_handle_close(sa); in checkHandlePtrInStructureUseAfterFree()
297 zx_handle_t sa, sb; in checkHandlePtrInStructureUseAfterFree2() local
298 zx_channel_create(0, &sa, &sb); in checkHandlePtrInStructureUseAfterFree2()
303 zx_handle_close(sa); in checkHandlePtrInStructureUseAfterFree2()
310 zx_handle_t sa, sb; in checkHandlePtrInStructureLeak() local
311 zx_channel_create(0, &sa, &sb); // expected-note {{Handle allocated through 3rd parameter}} in checkHandlePtrInStructureLeak()
314 zx_handle_close(sa); // expected-warning {{Potential leak of handle}} in checkHandlePtrInStructureLeak()
434 zx_handle_t sa, sb; in escape_through_call() local
435 if (zx_channel_create(0, &sa, &sb)) in escape_through_call()
437 escape1(&sa); in escape_through_call()
450 zx_handle_t sa; in escape_through_store01() local
451 if (zx_channel_create(0, &sa, handle->hp)) in escape_through_store01()
453 handle->h = sa; in escape_through_store01()
458 zx_handle_t sa; in escape_through_store02() local
459 if (zx_channel_create(0, &sa, global.hp)) in escape_through_store02()
461 global.h = sa; in escape_through_store02()
465 zx_handle_t sa, sb; in escape_through_store03() local
466 if (zx_channel_create(0, &sa, &sb)) in escape_through_store03()
469 return {sa, nullptr}; in escape_through_store03()
474 zx_handle_t sa, sb; in escape_transitively01() local
475 if (zx_channel_create(0, &sa, &sb)) in escape_transitively01()
478 hs[1] = {sa, &sb}; in escape_transitively01()