Lines Matching refs:sa

70   zx_handle_t sa, sb;  in checkInvalidHandle01()  local
71 zx_channel_create(0, &sa, &sb); in checkInvalidHandle01()
72 if (sa == ZX_HANDLE_INVALID) in checkInvalidHandle01()
76 use2(sa); // TODOexpected-warning {{Use of an invalid handle}} in checkInvalidHandle01()
78 zx_handle_close(sa); in checkInvalidHandle01()
82 zx_handle_t sa, sb; in checkInvalidHandle2() local
83 zx_channel_create(0, &sa, &sb); in checkInvalidHandle2()
86 if (sa != ZX_HANDLE_INVALID) in checkInvalidHandle2()
87 zx_handle_close(sa); in checkInvalidHandle2()
91 zx_handle_t sa, sb; in handleDieBeforeErrorSymbol01() local
92 zx_status_t status = zx_channel_create(0, &sa, &sb); in handleDieBeforeErrorSymbol01()
99 zx_handle_t sa, sb; in handleDieBeforeErrorSymbol02() local
100 zx_status_t status = zx_channel_create(0, &sa, &sb); in handleDieBeforeErrorSymbol02()
113 zx_handle_t sa, sb; in checkNoCrash01() local
114 zx_channel_create(0, &sa, &sb); in checkNoCrash01()
115 moreArgs(sa, 1, 2, 3, 4, 5); in checkNoCrash01()
116 lessArgs(sa); in checkNoCrash01()
117 zx_handle_close(sa); in checkNoCrash01()
122 zx_handle_t sa, sb; in checkNoLeak01() local
123 zx_channel_create(0, &sa, &sb); in checkNoLeak01()
124 zx_handle_close(sa); in checkNoLeak01()
143 zx_handle_t sa, sb; in checkNoLeak04() local
144 zx_channel_create(0, &sa, &sb); in checkNoLeak04()
145 zx_handle_close(sa); in checkNoLeak04()
150 zx_handle_t sa, sb; in checkNoLeak05() local
151 zx_channel_create(0, &sa, &sb); in checkNoLeak05()
152 *out1 = sa; in checkNoLeak05()
157 zx_handle_t sa, sb; in checkNoLeak06() local
158 if (zx_channel_create(0, &sa, &sb)) in checkNoLeak06()
160 zx_handle_close(sa); in checkNoLeak06()
165 zx_handle_t sa, sb; in checkLeak01() local
166 if (zx_channel_create(0, &sa, &sb)) // expected-note {{Handle allocated through 2nd parameter}} in checkLeak01()
169 use1(&sa); in checkLeak01()
171 zx_handle_close(sa); in checkLeak01()
179 …zx_handle_t sa = return_handle(); // expected-note {{Function 'return_handle' returns an open hand… in checkLeakFromReturn01() local
180 (void)sa; in checkLeakFromReturn01()
185 zx_handle_t sa, sb; in checkReportLeakOnOnePath() local
186 if (zx_channel_create(0, &sa, &sb)) // expected-note {{Handle allocated through 2nd parameter}} in checkReportLeakOnOnePath()
192 use2(sa); in checkReportLeakOnOnePath()
195 use2(sa); in checkReportLeakOnOnePath()
198 use2(sa); in checkReportLeakOnOnePath()
201 use2(sa); in checkReportLeakOnOnePath()
204 use2(sa); in checkReportLeakOnOnePath()
207 use2(sa); in checkReportLeakOnOnePath()
214 zx_handle_t sa, sb; in checkDoubleRelease01() local
215 zx_channel_create(0, &sa, &sb); in checkDoubleRelease01()
218 zx_handle_close(sa); // expected-note {{Handle released through 1st parameter}} in checkDoubleRelease01()
220 zx_handle_close(sa); // expected-warning {{Releasing a previously released handle}} in checkDoubleRelease01()
226 zx_handle_t sa, sb; in checkUseAfterFree01() local
227 zx_channel_create(0, &sa, &sb); in checkUseAfterFree01()
234 zx_handle_close(sa); // expected-note {{Handle released through 1st parameter}} in checkUseAfterFree01()
235 use1(&sa); // expected-warning {{Using a previously released handle}} in checkUseAfterFree01()
245 zx_handle_t sa, sb, sc; in checkMemberOperatorIndices() local
246 zx_channel_create(0, &sa, &sb); in checkMemberOperatorIndices()
249 sc = t + sa; in checkMemberOperatorIndices()
262 zx_handle_t sa, sb; in checkHandleInStructureUseAfterFree() local
263 zx_channel_create(0, &sa, &sb); // expected-note {{Handle allocated through 3rd parameter}} in checkHandleInStructureUseAfterFree()
268 zx_handle_close(sa); in checkHandleInStructureUseAfterFree()
275 zx_handle_t sa, sb; in checkHandleInStructureUseAfterFree2() local
276 zx_channel_create(0, &sa, &sb); // expected-note {{Handle allocated through 3rd parameter}} in checkHandleInStructureUseAfterFree2()
281 zx_handle_close(sa); in checkHandleInStructureUseAfterFree2()
288 zx_handle_t sa, sb; in checkHandleInStructureLeak() local
289 zx_channel_create(0, &sa, &sb); // expected-note {{Handle allocated through 3rd parameter}} in checkHandleInStructureLeak()
292 zx_handle_close(sa); // expected-warning {{Potential leak of handle}} in checkHandleInStructureLeak()
305 zx_handle_t sa, sb; in checkHandlePtrInStructureUseAfterFree() local
306 zx_channel_create(0, &sa, &sb); in checkHandlePtrInStructureUseAfterFree()
311 zx_handle_close(sa); in checkHandlePtrInStructureUseAfterFree()
318 zx_handle_t sa, sb; in checkHandlePtrInStructureUseAfterFree2() local
319 zx_channel_create(0, &sa, &sb); in checkHandlePtrInStructureUseAfterFree2()
324 zx_handle_close(sa); in checkHandlePtrInStructureUseAfterFree2()
331 zx_handle_t sa, sb; in checkHandlePtrInStructureLeak() local
332 zx_channel_create(0, &sa, &sb); // expected-note {{Handle allocated through 3rd parameter}} in checkHandlePtrInStructureLeak()
335 zx_handle_close(sa); // expected-warning {{Potential leak of handle}} in checkHandlePtrInStructureLeak()
455 zx_handle_t sa, sb; in escape_through_call() local
456 if (zx_channel_create(0, &sa, &sb)) in escape_through_call()
458 escape1(&sa); in escape_through_call()
471 zx_handle_t sa; in escape_through_store01() local
472 if (zx_channel_create(0, &sa, handle->hp)) in escape_through_store01()
474 handle->h = sa; in escape_through_store01()
479 zx_handle_t sa; in escape_through_store02() local
480 if (zx_channel_create(0, &sa, global.hp)) in escape_through_store02()
482 global.h = sa; in escape_through_store02()
486 zx_handle_t sa, sb; in escape_through_store03() local
487 if (zx_channel_create(0, &sa, &sb)) in escape_through_store03()
490 return {sa, nullptr}; in escape_through_store03()
495 zx_handle_t sa, sb; in escape_transitively01() local
496 if (zx_channel_create(0, &sa, &sb)) in escape_transitively01()
499 hs[1] = {sa, &sb}; in escape_transitively01()