Skip to content

Commit

Permalink
more fbi debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewQuijano committed Aug 27, 2024
1 parent 8441ca0 commit fb3006b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tools/fbi/src/find_bug_inj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,8 @@ int main (int argc, char **argv) {
inputfile = std::string(argv[4]);

std::string db_name = project["db"].asString() + host.get("db_suffix", "").asString();
std::string DBHost = host.get("database_host", "database").asString();
int DBPort = host.get("port", 5432).asInt();

const char* pgpass = std::getenv("PGPASS");
const char* pguser = std::getenv("PGUSER");
Expand All @@ -1038,8 +1040,10 @@ int main (int argc, char **argv) {
exit(1);
}

std::string DBHost("database");
int DBPort = 5432;
std::cout << "Name" << db_name << std::endl;
std::cout << "Host" << DBHost << std::endl;
std::cout << "Port" << DBPort << std::endl;

db.reset(new odb::pgsql::database(pguser, pgpass,
db_name, DBHost, DBPort));
/*
Expand All @@ -1064,7 +1068,8 @@ int main (int argc, char **argv) {
// break;
//}

num_entries_read++;
num_entries_read++;
std::cout << "*** Reading Entry " << num_entries_read << "\n";
if ((num_entries_read % 10000) == 0) {
printf("processed %lu pandalog entries \n", num_entries_read);
std::cout << num_bugs_added_to_db << " added to db "
Expand Down

0 comments on commit fb3006b

Please sign in to comment.