Question: why is line 301 a bug or a flaw when ran through a static analysis tool 287 288 289 290 291-7a return 1 for success,

why is line 301 a bug or a flaw when ran through a static analysis tool  why is line 301 a bug or a flaw when ran
through a static analysis tool 287 288 289 290 291-7a return 1

287 288 289 290 291-7a return 1 for success, 2 on bad username, 3 on bad password 292 int authenticate (FILE loafile, char user, char pass) 293 294char search [512]: 295 296 297 298 299 300 return 0; char path (1024]: char userfile [1024]: char data [1024] FILE file: int xet: Remaes (path, o, a zeof (1024 ));I 1 302 303 304 305 306 307 308 309 310 311 312 313 FIXME: hard coded admin backdoox for password recovery if (nencmR (pass, "baCkDoOr", 9)0) return 1: look up user by checking user files: done via system) to /bin/1sIgzep user logData (lestile, "performing 1ookup for user via system() !n") snerintf (userfile, sizeot (userfile) -1, "s.xt", user); ES system (search) ; 315

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!