Fix an off-by-one error in the utility function used to extract the dynamic class info. This resulted in a buffer overflow in the inferior which interrupted our utility function.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I'm curious now why there is both count and max_class_infos and if the second is workaround for this bug? Anyway, this *looks* plausible!
Comment Actions
count is the actual value reported by the runtime. max_class_infos is a monotonically increasing number that allows us to detect that new classes have been instantiated. The latter is also used to allocate enough space. The guarantee from the runtime is that count < max_class_infos.