leongross activity https://gitlab.com/leongross 2024-01-25T09:37:42Z tag:gitlab.com,2024-01-25:3114400584 leongross commented on issue #22 at libvirt / libvirt-rust 2024-01-25T09:37:42Z leongross leongross

I am not sure which connection URI I used to be honest. Sadly I cannot find a way to reproduce this issue. Again re-running the example code using qemu:///system seems to work just fine.

I think you might be more familiar with the design patterns of libvirt, so maybe you can answer me this question: couldn't it happen, that the the number of supported parameters for a given domain might again be zero?

Although I am currently not able to reproduce this error it nonetheless appeared, so maybe investigating this further could improve stability of this library.

tag:gitlab.com,2024-01-18:3099384864 leongross opened issue #22: Example: hello.rs at libvirt / libvirt-rust 2024-01-18T12:31:43Z leongross leongross

Running the exmaple.rs example on my machine causes a panic in virt-0.3.1/src/domain.rs:1554

index out of bounds: the len is 0 but the index is 0.

The code never actually checks if sys::virDomainGetMemoryParameters sets nparams to a non-zero length, hence the params vector can have size 0 and indexing the first elem fails.

versions

rust version: rustc 1.75.0 (82e1608df 2023-12-21) cargo version: cargo 1.75.0 (1d8b05cdd 2023-11-20) qemu version: 8.2.0

tag:gitlab.com,2024-01-18:3099367830 leongross created project leongross / libvirt-rust 2024-01-18T12:25:41Z leongross leongross tag:gitlab.com,2021-10-12:1507900682 leongross deleted project branch fix/README.md at leongross / cryptsetup 2021-10-12T20:30:21Z leongross leongross

leongross (ca30d3cd) at 12 Oct 20:30

tag:gitlab.com,2021-10-12:1507310163 leongross opened merge request !233: fix minor README.md issues at cryptsetup / cryptsetup 2021-10-12T14:25:35Z leongross leongross
tag:gitlab.com,2021-10-12:1507309263 leongross pushed new project branch fix/README.md at leongross / cryptsetup 2021-10-12T14:25:12Z leongross leongross

leongross (44b30285) at 12 Oct 14:25

fix minor README.md issues

tag:gitlab.com,2021-10-12:1507290361 leongross created project leongross / cryptsetup 2021-10-12T14:17:22Z leongross leongross