chanduusc / libdnet

Automatically exported from code.google.com/p/libdnet
Other
0 stars 0 forks source link

[PATCH] void* dereference #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run on a system with !HAVE_LINUX_PROCFS and a void* ifc_buf in ifconf.

What is the expected output? What do you see instead?

libdnet seems to behave correctly for me, but it's probably just due to 
compiler help (the code treats ifc_buf like a char*).

If HAVE_LINUX_PROCFS is defined then this code isn't used, and not all systems 
have a void *ifc_buf, so I guess that's why it wasn't noticed.

What version of the product are you using? On what operating system?

SVN checkout.  Running on NetBSD -current (5.99.39)

Please provide any additional information below.

I've attached a simple patch to correct this.

Original issue reported on code.google.com by katterj...@gmail.com on 21 Sep 2010 at 5:50

Attachments:

GoogleCodeExporter commented 9 years ago
Validated on NetBSD and FreeBSD. Requesting commit from dugsong@

Original comment by jay.f...@gmail.com on 2 Oct 2010 at 11:56