Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sun, 23 Dec 2012 18:36:35 +0530
From: Dhiru Kholia <dhiru.kholia@...il.com>
To: john-dev@...ts.openwall.com
Subject: scan-build results, part 1

Hi,

scan-build is complaining about "Logic error	Stack address stored into
global variable" in single.c.

495	void do_single_crack(struct db_main *db)
496	{
497	    struct rpp_context ctx;
498	
499	    single_db = db;
500	    rule_ctx = &ctx;
501	    single_init();
502	    single_run();
503	    single_done();
504	}
	
Address of stack memory associated with local variable 'ctx' is still
referred to by the global variable 'rule_ctx' upon returning to the
caller. This will be a dangling reference.

I don't know if rules_ctx's value is used later on or not.

-- 
Cheers,
Dhiru

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.