A few options.
Jason Roehl in Lafayette, IN
JB Weld is kind of spendy for this type of repair, so I wouldn't go that route myself.
First, I'd use a chlorine bleach solution (3 parts water to 1 part household bleach) on the damaged area after you knock out any loose or punky wood, let it sit for about 15 minutes, then rinse it and let it dry in the sun. I would then use some wood hardener (as near as I can tell, it's just a very, very dilute form of drying oil). Either way, you basically need to apply a clear, penetrating, drying/curing finish that will stabilize the wood fibers.
Now your options expand a bit. Top 3 on my list would be (and not necessarily in this order, it depends on the size of the repair):
1. Durham's Rock-Hard Water Putty. It's a yellowish powder that you mix with water and pack into the hole. You may need to tack on some blocks covered with wax paper as forms if you have to build up a corner or 3-sided areas. You can vary how much water you add to it to affect the consistency. This stuff sets up pretty quickly, generally you have about 5-10 minutes of working time.
2. Epoxy putty. You can get tubes of this stuff, where the two parts are extruded together. Cut off the approximate amount you need, knead the putty until the two colors have mixed together uniformly, then force into the damaged area. There are different cure times available, as well as sizes. You can get a 6" x 3/4" tube for a couple bucks at an automotive store (or order it from Billy Mays' replacement, Anthony Sullivan--"Mighty Putty"), but I've even ordered a couple pounds of the stuff from an automotive store and got two separate chunks that together are about half the size of a standard red brick.
3. Bondo. I like the Bondo with fiberglass in it. Fairly easy to work with, sets hards, sands pretty well.
Of all the options, #2 is probably the worst. The reason I say that is because epoxy putty tends to be thick, so it wouldn't get down into all the nooks and crannies of the damaged wood. I would probably go with #1 just because you could apply a thinner coat (mixed thinly) so that it does get in all the nooks and crannies, then apply a thicker batch to fill the bulk of the missing volume.
Jason