Opened 16 years ago
Last modified 15 years ago
#8439 closed patch
Invalid read of size 1 in GetNvidiaRates — at Initial Version
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.24 |
| Component: | MythTV - General | Version: | 0.23-fixes |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Valgrind reports:
==32267== Invalid read of size 1 ==32267== at 0x588FC48: GetNvidiaRates(std::map<unsigned int, double, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, double> > >&) (util-nvctrl.cpp:162) ==32267== by 0x5889978: DisplayResX::GetVideoModes() const (DisplayResX.cpp:129) ==32267== by 0x8F1BBD5: (below main) (libc-start.c:226) ==32267== Address 0xed69bbf is 0 bytes after a block of size 3,527 alloc'd ==32267== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==32267== by 0x589DAD1: XNVCTRLQueryTargetBinaryData (NVCtrl.c:708) ==32267== by 0x8F1BBD5: (below main) (libc-start.c:226) ==32267==

possible fix