1*67e74705SXin Li //= UnixAPIChecker.h - Checks preconditions for various Unix APIs --*- C++ -*-//
2*67e74705SXin Li //
3*67e74705SXin Li // The LLVM Compiler Infrastructure
4*67e74705SXin Li //
5*67e74705SXin Li // This file is distributed under the University of Illinois Open Source
6*67e74705SXin Li // License. See LICENSE.TXT for details.
7*67e74705SXin Li //
8*67e74705SXin Li //===----------------------------------------------------------------------===//
9*67e74705SXin Li //
10*67e74705SXin Li // This defines UnixAPIChecker, which is an assortment of checks on calls
11*67e74705SXin Li // to various, widely used UNIX/Posix functions.
12*67e74705SXin Li //
13*67e74705SXin Li //===----------------------------------------------------------------------===//
14*67e74705SXin Li
15*67e74705SXin Li #include "ClangSACheckers.h"
16*67e74705SXin Li #include "clang/Basic/TargetInfo.h"
17*67e74705SXin Li #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
18*67e74705SXin Li #include "clang/StaticAnalyzer/Core/Checker.h"
19*67e74705SXin Li #include "clang/StaticAnalyzer/Core/CheckerManager.h"
20*67e74705SXin Li #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
21*67e74705SXin Li #include "llvm/ADT/Optional.h"
22*67e74705SXin Li #include "llvm/ADT/STLExtras.h"
23*67e74705SXin Li #include "llvm/ADT/SmallString.h"
24*67e74705SXin Li #include "llvm/ADT/StringSwitch.h"
25*67e74705SXin Li #include "llvm/Support/raw_ostream.h"
26*67e74705SXin Li #include <fcntl.h>
27*67e74705SXin Li
28*67e74705SXin Li using namespace clang;
29*67e74705SXin Li using namespace ento;
30*67e74705SXin Li
31*67e74705SXin Li namespace {
32*67e74705SXin Li class UnixAPIChecker : public Checker< check::PreStmt<CallExpr> > {
33*67e74705SXin Li mutable std::unique_ptr<BugType> BT_open, BT_pthreadOnce, BT_mallocZero;
34*67e74705SXin Li mutable Optional<uint64_t> Val_O_CREAT;
35*67e74705SXin Li
36*67e74705SXin Li public:
37*67e74705SXin Li void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
38*67e74705SXin Li
39*67e74705SXin Li void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
40*67e74705SXin Li void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
41*67e74705SXin Li void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
42*67e74705SXin Li void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
43*67e74705SXin Li void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
44*67e74705SXin Li void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) const;
45*67e74705SXin Li void CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const;
46*67e74705SXin Li void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const;
47*67e74705SXin Li
48*67e74705SXin Li typedef void (UnixAPIChecker::*SubChecker)(CheckerContext &,
49*67e74705SXin Li const CallExpr *) const;
50*67e74705SXin Li private:
51*67e74705SXin Li bool ReportZeroByteAllocation(CheckerContext &C,
52*67e74705SXin Li ProgramStateRef falseState,
53*67e74705SXin Li const Expr *arg,
54*67e74705SXin Li const char *fn_name) const;
55*67e74705SXin Li void BasicAllocationCheck(CheckerContext &C,
56*67e74705SXin Li const CallExpr *CE,
57*67e74705SXin Li const unsigned numArgs,
58*67e74705SXin Li const unsigned sizeArg,
59*67e74705SXin Li const char *fn) const;
LazyInitialize(std::unique_ptr<BugType> & BT,const char * name) const60*67e74705SXin Li void LazyInitialize(std::unique_ptr<BugType> &BT, const char *name) const {
61*67e74705SXin Li if (BT)
62*67e74705SXin Li return;
63*67e74705SXin Li BT.reset(new BugType(this, name, categories::UnixAPI));
64*67e74705SXin Li }
65*67e74705SXin Li void ReportOpenBug(CheckerContext &C,
66*67e74705SXin Li ProgramStateRef State,
67*67e74705SXin Li const char *Msg,
68*67e74705SXin Li SourceRange SR) const;
69*67e74705SXin Li };
70*67e74705SXin Li } //end anonymous namespace
71*67e74705SXin Li
72*67e74705SXin Li //===----------------------------------------------------------------------===//
73*67e74705SXin Li // "open" (man 2 open)
74*67e74705SXin Li //===----------------------------------------------------------------------===//
75*67e74705SXin Li
ReportOpenBug(CheckerContext & C,ProgramStateRef State,const char * Msg,SourceRange SR) const76*67e74705SXin Li void UnixAPIChecker::ReportOpenBug(CheckerContext &C,
77*67e74705SXin Li ProgramStateRef State,
78*67e74705SXin Li const char *Msg,
79*67e74705SXin Li SourceRange SR) const {
80*67e74705SXin Li ExplodedNode *N = C.generateErrorNode(State);
81*67e74705SXin Li if (!N)
82*67e74705SXin Li return;
83*67e74705SXin Li
84*67e74705SXin Li LazyInitialize(BT_open, "Improper use of 'open'");
85*67e74705SXin Li
86*67e74705SXin Li auto Report = llvm::make_unique<BugReport>(*BT_open, Msg, N);
87*67e74705SXin Li Report->addRange(SR);
88*67e74705SXin Li C.emitReport(std::move(Report));
89*67e74705SXin Li }
90*67e74705SXin Li
CheckOpen(CheckerContext & C,const CallExpr * CE) const91*67e74705SXin Li void UnixAPIChecker::CheckOpen(CheckerContext &C, const CallExpr *CE) const {
92*67e74705SXin Li ProgramStateRef state = C.getState();
93*67e74705SXin Li
94*67e74705SXin Li if (CE->getNumArgs() < 2) {
95*67e74705SXin Li // The frontend should issue a warning for this case, so this is a sanity
96*67e74705SXin Li // check.
97*67e74705SXin Li return;
98*67e74705SXin Li } else if (CE->getNumArgs() == 3) {
99*67e74705SXin Li const Expr *Arg = CE->getArg(2);
100*67e74705SXin Li QualType QT = Arg->getType();
101*67e74705SXin Li if (!QT->isIntegerType()) {
102*67e74705SXin Li ReportOpenBug(C, state,
103*67e74705SXin Li "Third argument to 'open' is not an integer",
104*67e74705SXin Li Arg->getSourceRange());
105*67e74705SXin Li return;
106*67e74705SXin Li }
107*67e74705SXin Li } else if (CE->getNumArgs() > 3) {
108*67e74705SXin Li ReportOpenBug(C, state,
109*67e74705SXin Li "Call to 'open' with more than three arguments",
110*67e74705SXin Li CE->getArg(3)->getSourceRange());
111*67e74705SXin Li return;
112*67e74705SXin Li }
113*67e74705SXin Li
114*67e74705SXin Li // The definition of O_CREAT is platform specific. We need a better way
115*67e74705SXin Li // of querying this information from the checking environment.
116*67e74705SXin Li if (!Val_O_CREAT.hasValue()) {
117*67e74705SXin Li if (C.getASTContext().getTargetInfo().getTriple().getVendor()
118*67e74705SXin Li == llvm::Triple::Apple)
119*67e74705SXin Li Val_O_CREAT = 0x0200;
120*67e74705SXin Li else {
121*67e74705SXin Li // FIXME: We need a more general way of getting the O_CREAT value.
122*67e74705SXin Li // We could possibly grovel through the preprocessor state, but
123*67e74705SXin Li // that would require passing the Preprocessor object to the ExprEngine.
124*67e74705SXin Li // See also: MallocChecker.cpp / M_ZERO.
125*67e74705SXin Li return;
126*67e74705SXin Li }
127*67e74705SXin Li }
128*67e74705SXin Li
129*67e74705SXin Li // Now check if oflags has O_CREAT set.
130*67e74705SXin Li const Expr *oflagsEx = CE->getArg(1);
131*67e74705SXin Li const SVal V = state->getSVal(oflagsEx, C.getLocationContext());
132*67e74705SXin Li if (!V.getAs<NonLoc>()) {
133*67e74705SXin Li // The case where 'V' can be a location can only be due to a bad header,
134*67e74705SXin Li // so in this case bail out.
135*67e74705SXin Li return;
136*67e74705SXin Li }
137*67e74705SXin Li NonLoc oflags = V.castAs<NonLoc>();
138*67e74705SXin Li NonLoc ocreateFlag = C.getSValBuilder()
139*67e74705SXin Li .makeIntVal(Val_O_CREAT.getValue(), oflagsEx->getType()).castAs<NonLoc>();
140*67e74705SXin Li SVal maskedFlagsUC = C.getSValBuilder().evalBinOpNN(state, BO_And,
141*67e74705SXin Li oflags, ocreateFlag,
142*67e74705SXin Li oflagsEx->getType());
143*67e74705SXin Li if (maskedFlagsUC.isUnknownOrUndef())
144*67e74705SXin Li return;
145*67e74705SXin Li DefinedSVal maskedFlags = maskedFlagsUC.castAs<DefinedSVal>();
146*67e74705SXin Li
147*67e74705SXin Li // Check if maskedFlags is non-zero.
148*67e74705SXin Li ProgramStateRef trueState, falseState;
149*67e74705SXin Li std::tie(trueState, falseState) = state->assume(maskedFlags);
150*67e74705SXin Li
151*67e74705SXin Li // Only emit an error if the value of 'maskedFlags' is properly
152*67e74705SXin Li // constrained;
153*67e74705SXin Li if (!(trueState && !falseState))
154*67e74705SXin Li return;
155*67e74705SXin Li
156*67e74705SXin Li if (CE->getNumArgs() < 3) {
157*67e74705SXin Li ReportOpenBug(C, trueState,
158*67e74705SXin Li "Call to 'open' requires a third argument when "
159*67e74705SXin Li "the 'O_CREAT' flag is set",
160*67e74705SXin Li oflagsEx->getSourceRange());
161*67e74705SXin Li }
162*67e74705SXin Li }
163*67e74705SXin Li
164*67e74705SXin Li //===----------------------------------------------------------------------===//
165*67e74705SXin Li // pthread_once
166*67e74705SXin Li //===----------------------------------------------------------------------===//
167*67e74705SXin Li
CheckPthreadOnce(CheckerContext & C,const CallExpr * CE) const168*67e74705SXin Li void UnixAPIChecker::CheckPthreadOnce(CheckerContext &C,
169*67e74705SXin Li const CallExpr *CE) const {
170*67e74705SXin Li
171*67e74705SXin Li // This is similar to 'CheckDispatchOnce' in the MacOSXAPIChecker.
172*67e74705SXin Li // They can possibly be refactored.
173*67e74705SXin Li
174*67e74705SXin Li if (CE->getNumArgs() < 1)
175*67e74705SXin Li return;
176*67e74705SXin Li
177*67e74705SXin Li // Check if the first argument is stack allocated. If so, issue a warning
178*67e74705SXin Li // because that's likely to be bad news.
179*67e74705SXin Li ProgramStateRef state = C.getState();
180*67e74705SXin Li const MemRegion *R =
181*67e74705SXin Li state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion();
182*67e74705SXin Li if (!R || !isa<StackSpaceRegion>(R->getMemorySpace()))
183*67e74705SXin Li return;
184*67e74705SXin Li
185*67e74705SXin Li ExplodedNode *N = C.generateErrorNode(state);
186*67e74705SXin Li if (!N)
187*67e74705SXin Li return;
188*67e74705SXin Li
189*67e74705SXin Li SmallString<256> S;
190*67e74705SXin Li llvm::raw_svector_ostream os(S);
191*67e74705SXin Li os << "Call to 'pthread_once' uses";
192*67e74705SXin Li if (const VarRegion *VR = dyn_cast<VarRegion>(R))
193*67e74705SXin Li os << " the local variable '" << VR->getDecl()->getName() << '\'';
194*67e74705SXin Li else
195*67e74705SXin Li os << " stack allocated memory";
196*67e74705SXin Li os << " for the \"control\" value. Using such transient memory for "
197*67e74705SXin Li "the control value is potentially dangerous.";
198*67e74705SXin Li if (isa<VarRegion>(R) && isa<StackLocalsSpaceRegion>(R->getMemorySpace()))
199*67e74705SXin Li os << " Perhaps you intended to declare the variable as 'static'?";
200*67e74705SXin Li
201*67e74705SXin Li LazyInitialize(BT_pthreadOnce, "Improper use of 'pthread_once'");
202*67e74705SXin Li
203*67e74705SXin Li auto report = llvm::make_unique<BugReport>(*BT_pthreadOnce, os.str(), N);
204*67e74705SXin Li report->addRange(CE->getArg(0)->getSourceRange());
205*67e74705SXin Li C.emitReport(std::move(report));
206*67e74705SXin Li }
207*67e74705SXin Li
208*67e74705SXin Li //===----------------------------------------------------------------------===//
209*67e74705SXin Li // "calloc", "malloc", "realloc", "reallocf", "alloca" and "valloc"
210*67e74705SXin Li // with allocation size 0
211*67e74705SXin Li //===----------------------------------------------------------------------===//
212*67e74705SXin Li // FIXME: Eventually these should be rolled into the MallocChecker, but right now
213*67e74705SXin Li // they're more basic and valuable for widespread use.
214*67e74705SXin Li
215*67e74705SXin Li // Returns true if we try to do a zero byte allocation, false otherwise.
216*67e74705SXin Li // Fills in trueState and falseState.
IsZeroByteAllocation(ProgramStateRef state,const SVal argVal,ProgramStateRef * trueState,ProgramStateRef * falseState)217*67e74705SXin Li static bool IsZeroByteAllocation(ProgramStateRef state,
218*67e74705SXin Li const SVal argVal,
219*67e74705SXin Li ProgramStateRef *trueState,
220*67e74705SXin Li ProgramStateRef *falseState) {
221*67e74705SXin Li std::tie(*trueState, *falseState) =
222*67e74705SXin Li state->assume(argVal.castAs<DefinedSVal>());
223*67e74705SXin Li
224*67e74705SXin Li return (*falseState && !*trueState);
225*67e74705SXin Li }
226*67e74705SXin Li
227*67e74705SXin Li // Generates an error report, indicating that the function whose name is given
228*67e74705SXin Li // will perform a zero byte allocation.
229*67e74705SXin Li // Returns false if an error occurred, true otherwise.
ReportZeroByteAllocation(CheckerContext & C,ProgramStateRef falseState,const Expr * arg,const char * fn_name) const230*67e74705SXin Li bool UnixAPIChecker::ReportZeroByteAllocation(CheckerContext &C,
231*67e74705SXin Li ProgramStateRef falseState,
232*67e74705SXin Li const Expr *arg,
233*67e74705SXin Li const char *fn_name) const {
234*67e74705SXin Li ExplodedNode *N = C.generateErrorNode(falseState);
235*67e74705SXin Li if (!N)
236*67e74705SXin Li return false;
237*67e74705SXin Li
238*67e74705SXin Li LazyInitialize(BT_mallocZero,
239*67e74705SXin Li "Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)");
240*67e74705SXin Li
241*67e74705SXin Li SmallString<256> S;
242*67e74705SXin Li llvm::raw_svector_ostream os(S);
243*67e74705SXin Li os << "Call to '" << fn_name << "' has an allocation size of 0 bytes";
244*67e74705SXin Li auto report = llvm::make_unique<BugReport>(*BT_mallocZero, os.str(), N);
245*67e74705SXin Li
246*67e74705SXin Li report->addRange(arg->getSourceRange());
247*67e74705SXin Li bugreporter::trackNullOrUndefValue(N, arg, *report);
248*67e74705SXin Li C.emitReport(std::move(report));
249*67e74705SXin Li
250*67e74705SXin Li return true;
251*67e74705SXin Li }
252*67e74705SXin Li
253*67e74705SXin Li // Does a basic check for 0-sized allocations suitable for most of the below
254*67e74705SXin Li // functions (modulo "calloc")
BasicAllocationCheck(CheckerContext & C,const CallExpr * CE,const unsigned numArgs,const unsigned sizeArg,const char * fn) const255*67e74705SXin Li void UnixAPIChecker::BasicAllocationCheck(CheckerContext &C,
256*67e74705SXin Li const CallExpr *CE,
257*67e74705SXin Li const unsigned numArgs,
258*67e74705SXin Li const unsigned sizeArg,
259*67e74705SXin Li const char *fn) const {
260*67e74705SXin Li // Sanity check for the correct number of arguments
261*67e74705SXin Li if (CE->getNumArgs() != numArgs)
262*67e74705SXin Li return;
263*67e74705SXin Li
264*67e74705SXin Li // Check if the allocation size is 0.
265*67e74705SXin Li ProgramStateRef state = C.getState();
266*67e74705SXin Li ProgramStateRef trueState = nullptr, falseState = nullptr;
267*67e74705SXin Li const Expr *arg = CE->getArg(sizeArg);
268*67e74705SXin Li SVal argVal = state->getSVal(arg, C.getLocationContext());
269*67e74705SXin Li
270*67e74705SXin Li if (argVal.isUnknownOrUndef())
271*67e74705SXin Li return;
272*67e74705SXin Li
273*67e74705SXin Li // Is the value perfectly constrained to zero?
274*67e74705SXin Li if (IsZeroByteAllocation(state, argVal, &trueState, &falseState)) {
275*67e74705SXin Li (void) ReportZeroByteAllocation(C, falseState, arg, fn);
276*67e74705SXin Li return;
277*67e74705SXin Li }
278*67e74705SXin Li // Assume the value is non-zero going forward.
279*67e74705SXin Li assert(trueState);
280*67e74705SXin Li if (trueState != state)
281*67e74705SXin Li C.addTransition(trueState);
282*67e74705SXin Li }
283*67e74705SXin Li
CheckCallocZero(CheckerContext & C,const CallExpr * CE) const284*67e74705SXin Li void UnixAPIChecker::CheckCallocZero(CheckerContext &C,
285*67e74705SXin Li const CallExpr *CE) const {
286*67e74705SXin Li unsigned int nArgs = CE->getNumArgs();
287*67e74705SXin Li if (nArgs != 2)
288*67e74705SXin Li return;
289*67e74705SXin Li
290*67e74705SXin Li ProgramStateRef state = C.getState();
291*67e74705SXin Li ProgramStateRef trueState = nullptr, falseState = nullptr;
292*67e74705SXin Li
293*67e74705SXin Li unsigned int i;
294*67e74705SXin Li for (i = 0; i < nArgs; i++) {
295*67e74705SXin Li const Expr *arg = CE->getArg(i);
296*67e74705SXin Li SVal argVal = state->getSVal(arg, C.getLocationContext());
297*67e74705SXin Li if (argVal.isUnknownOrUndef()) {
298*67e74705SXin Li if (i == 0)
299*67e74705SXin Li continue;
300*67e74705SXin Li else
301*67e74705SXin Li return;
302*67e74705SXin Li }
303*67e74705SXin Li
304*67e74705SXin Li if (IsZeroByteAllocation(state, argVal, &trueState, &falseState)) {
305*67e74705SXin Li if (ReportZeroByteAllocation(C, falseState, arg, "calloc"))
306*67e74705SXin Li return;
307*67e74705SXin Li else if (i == 0)
308*67e74705SXin Li continue;
309*67e74705SXin Li else
310*67e74705SXin Li return;
311*67e74705SXin Li }
312*67e74705SXin Li }
313*67e74705SXin Li
314*67e74705SXin Li // Assume the value is non-zero going forward.
315*67e74705SXin Li assert(trueState);
316*67e74705SXin Li if (trueState != state)
317*67e74705SXin Li C.addTransition(trueState);
318*67e74705SXin Li }
319*67e74705SXin Li
CheckMallocZero(CheckerContext & C,const CallExpr * CE) const320*67e74705SXin Li void UnixAPIChecker::CheckMallocZero(CheckerContext &C,
321*67e74705SXin Li const CallExpr *CE) const {
322*67e74705SXin Li BasicAllocationCheck(C, CE, 1, 0, "malloc");
323*67e74705SXin Li }
324*67e74705SXin Li
CheckReallocZero(CheckerContext & C,const CallExpr * CE) const325*67e74705SXin Li void UnixAPIChecker::CheckReallocZero(CheckerContext &C,
326*67e74705SXin Li const CallExpr *CE) const {
327*67e74705SXin Li BasicAllocationCheck(C, CE, 2, 1, "realloc");
328*67e74705SXin Li }
329*67e74705SXin Li
CheckReallocfZero(CheckerContext & C,const CallExpr * CE) const330*67e74705SXin Li void UnixAPIChecker::CheckReallocfZero(CheckerContext &C,
331*67e74705SXin Li const CallExpr *CE) const {
332*67e74705SXin Li BasicAllocationCheck(C, CE, 2, 1, "reallocf");
333*67e74705SXin Li }
334*67e74705SXin Li
CheckAllocaZero(CheckerContext & C,const CallExpr * CE) const335*67e74705SXin Li void UnixAPIChecker::CheckAllocaZero(CheckerContext &C,
336*67e74705SXin Li const CallExpr *CE) const {
337*67e74705SXin Li BasicAllocationCheck(C, CE, 1, 0, "alloca");
338*67e74705SXin Li }
339*67e74705SXin Li
CheckVallocZero(CheckerContext & C,const CallExpr * CE) const340*67e74705SXin Li void UnixAPIChecker::CheckVallocZero(CheckerContext &C,
341*67e74705SXin Li const CallExpr *CE) const {
342*67e74705SXin Li BasicAllocationCheck(C, CE, 1, 0, "valloc");
343*67e74705SXin Li }
344*67e74705SXin Li
345*67e74705SXin Li
346*67e74705SXin Li //===----------------------------------------------------------------------===//
347*67e74705SXin Li // Central dispatch function.
348*67e74705SXin Li //===----------------------------------------------------------------------===//
349*67e74705SXin Li
checkPreStmt(const CallExpr * CE,CheckerContext & C) const350*67e74705SXin Li void UnixAPIChecker::checkPreStmt(const CallExpr *CE,
351*67e74705SXin Li CheckerContext &C) const {
352*67e74705SXin Li const FunctionDecl *FD = C.getCalleeDecl(CE);
353*67e74705SXin Li if (!FD || FD->getKind() != Decl::Function)
354*67e74705SXin Li return;
355*67e74705SXin Li
356*67e74705SXin Li StringRef FName = C.getCalleeName(FD);
357*67e74705SXin Li if (FName.empty())
358*67e74705SXin Li return;
359*67e74705SXin Li
360*67e74705SXin Li SubChecker SC =
361*67e74705SXin Li llvm::StringSwitch<SubChecker>(FName)
362*67e74705SXin Li .Case("open", &UnixAPIChecker::CheckOpen)
363*67e74705SXin Li .Case("pthread_once", &UnixAPIChecker::CheckPthreadOnce)
364*67e74705SXin Li .Case("calloc", &UnixAPIChecker::CheckCallocZero)
365*67e74705SXin Li .Case("malloc", &UnixAPIChecker::CheckMallocZero)
366*67e74705SXin Li .Case("realloc", &UnixAPIChecker::CheckReallocZero)
367*67e74705SXin Li .Case("reallocf", &UnixAPIChecker::CheckReallocfZero)
368*67e74705SXin Li .Cases("alloca", "__builtin_alloca", &UnixAPIChecker::CheckAllocaZero)
369*67e74705SXin Li .Case("valloc", &UnixAPIChecker::CheckVallocZero)
370*67e74705SXin Li .Default(nullptr);
371*67e74705SXin Li
372*67e74705SXin Li if (SC)
373*67e74705SXin Li (this->*SC)(C, CE);
374*67e74705SXin Li }
375*67e74705SXin Li
376*67e74705SXin Li //===----------------------------------------------------------------------===//
377*67e74705SXin Li // Registration.
378*67e74705SXin Li //===----------------------------------------------------------------------===//
379*67e74705SXin Li
registerUnixAPIChecker(CheckerManager & mgr)380*67e74705SXin Li void ento::registerUnixAPIChecker(CheckerManager &mgr) {
381*67e74705SXin Li mgr.registerChecker<UnixAPIChecker>();
382*67e74705SXin Li }
383