public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25727] New: infcall std::vector operator[] passes invalid parameter value
@ 2020-03-26  5:57 jan.kratochvil at redhat dot com
  2020-03-26 18:34 ` [Bug c++/25727] " pakibuz at gmail dot com
  2020-04-03 20:16 ` tromey at sourceware dot org
  0 siblings, 2 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2020-03-26  5:57 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=25727

            Bug ID: 25727
           Summary: infcall std::vector operator[] passes invalid
                    parameter value
           Product: gdb
           Version: 8.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com
  Target Milestone: ---

gdb-8.3.50.20190824-30.fc31.x86_64

cat >65.C <<EOH
#include <stdio.h>
#include <vector>
static std::vector<bool> vec(10);
int main() {
  return vec[0];
}
EOH

g++ -o 65 65.C -Wall -g -fsanitize=undefined -D_GLIBCXX_DEBUG;gdb ./65 -ex 'b
5' -ex r -ex "b 'std::__debug::vector<bool, std::allocator<bool>
>::operator[](unsigned long)'" -ex 'p vec[9]'

/usr/include/c++/9/bits/stl_bvector.h:217:6: runtime error: signed integer
overflow: 3746994889972252984 * 8 cannot be represented in type 'long int'
$1 = {_M_p = 0x405008, _M_mask = 140737338667718}

g++ -o 65 65.C -Wall -g -fsanitize=undefined -D_GLIBCXX_DEBUG;gdb ./65 -ex 'b
5' -ex r -ex 'p vec[9]'

Breakpoint 2, std::__debug::vector<bool, std::allocator<bool> >::operator[]
(this=0x7fffffffd3a0, __n=4238912) at /usr/include/c++/9/debug/vector:427
427             __glibcxx_check_subscript(__n);
...
(gdb) x/gx 4238912
0x40ae40 <_ZL3vec>:     0x0000000000000000

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/25727] infcall std::vector operator[] passes invalid parameter value
  2020-03-26  5:57 [Bug c++/25727] New: infcall std::vector operator[] passes invalid parameter value jan.kratochvil at redhat dot com
@ 2020-03-26 18:34 ` pakibuz at gmail dot com
  2020-04-03 20:16 ` tromey at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pakibuz at gmail dot com @ 2020-03-26 18:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=25727

jonsi <pakibuz at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pakibuz at gmail dot com

--- Comment #1 from jonsi <pakibuz at gmail dot com> ---
i think fine this working now 
https://boxofficecollectiondb.com/isaimini-moviesda-download/
https://boxofficecollectiondb.com/tamilrockers-movies-download/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/25727] infcall std::vector operator[] passes invalid parameter value
  2020-03-26  5:57 [Bug c++/25727] New: infcall std::vector operator[] passes invalid parameter value jan.kratochvil at redhat dot com
  2020-03-26 18:34 ` [Bug c++/25727] " pakibuz at gmail dot com
@ 2020-04-03 20:16 ` tromey at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2020-04-03 20:16 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=25727

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-03 20:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26  5:57 [Bug c++/25727] New: infcall std::vector operator[] passes invalid parameter value jan.kratochvil at redhat dot com
2020-03-26 18:34 ` [Bug c++/25727] " pakibuz at gmail dot com
2020-04-03 20:16 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).