Apache OpenOffice (AOO) Bugzilla – Issue 64431
dmake: SETDIR for percent targets uses dangling pointer
Last modified: 2013-08-07 15:34:52 UTC
Example makefile: ----------------- all .PHONY : sub-{a b} sub-% .SETDIR=. .PHONY : % $(MAKE) do-$* do-% .PHONY : @echo do-$* ----------------- Whenever a rule for percent target with a SETDIR attribute gets invoked more than one, dmake quits with this message: dmake.exe: Error: -- Unable to change to directory `x\/', target is [sub-b] The directory part of this message is random, because the directory is referenced using an already freed pointer.
reassign
Created attachment 35753 [details] Patch for infer.c to fix the dangling pointer
I take it. Unfortunately this has to wait until CWS dmake43p01 is integrated (which is in progress now.).
@unistein: Thank you for filing this issue and providing the solution. Short of rewriting the .SETDIR handling your fix is the obvious solution. I committed something comparable to dmake45. Reassigning for verification.
Committed also a testcase. @ause: Please verify.
work
.