Skip to content

Commit

Permalink
quick patch for kernel module crash due to overly large variables on …
Browse files Browse the repository at this point in the history
…the stack (ccnl-ext-mgmt.c)
  • Loading branch information
tschudin committed Jul 23, 2013
1 parent 1e7422c commit cd21f87
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 148 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ ccn-lite-simu
# binaries in subdirectories
util/ccn-lite-ctrl
util/ccn-lite-peek
util/ccn-lite-parse
util/ccn-lite-ccnb2hex
util/ccn-lite-ccnb2xml

# scripts
test/scripts/test-digest.sh

# eof
3 changes: 2 additions & 1 deletion ccn-lite-lnxkernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ void
ccnl_ll_TX(struct ccnl_relay_s *relay, struct ccnl_if_s *ifc,
sockunion *dest, struct ccnl_buf_s *buf)
{
DEBUGMSG(1, "ccnl_ll_TX for %d bytes\n", buf ? buf->datalen : -1);
DEBUGMSG(1, "ccnl_ll_TX for %d bytes ifc=%p sock=%p\n", buf ? buf->datalen : -1,
ifc, ifc ? ifc->sock : NULL);

if (!dest)
return;
Expand Down
3 changes: 2 additions & 1 deletion ccnl-ext-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ get_interface_dump(int lev, void *p, int *ifndx, char **addr, long *dev,
INDENT(lev+1);

ifndx[k] = k;
sprintf(addr[k], ccnl_addr2ascii(&top->ifs[k].addr));
// sprintf(addr[k], ccnl_addr2ascii(&top->ifs[k].addr));
strcpy(addr[k], ccnl_addr2ascii(&top->ifs[k].addr));

#ifdef CCNL_LINUXKERNEL
if (top->ifs[k].addr.sa.sa_family == AF_PACKET)
Expand Down
Loading

0 comments on commit cd21f87

Please sign in to comment.