In an information processing apparatus for relaying a calling from a first
module to a function inside a second module in software divided into a
plurality of modules, the calling is relayed from the first module to the
function inside the second module. A log in the second module
corresponding to the calling is obtained. The log includes at least a
write starting address of binary data and a data size thereof. An area
where the binary data is written is determined based on the write
starting address and the data size thereof. Whether or not writing into
the decided area is permitted is determined. On the basis of the
determination result, writing into the decided area of the binary data is
controlled. As a result, writing into an invalid area of the log is
prevented without modifying the software.