KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Questions tagged
undefined-behavior
27 questions
Follow Tag
Sort by:
Newest
Votes
Active
19
votes
5
answers
Why does a program accessing illegal pointer to pointer not crash?
c
undefined-behavior
asked 2013-07-25T07:57:22.667
33
votes
10
answers
Why doesn't vector::clear remove elements from a vector?
c++
stdvector
undefined-behavior
asked 2013-06-24T22:33:51.713
18
votes
1
answers
Does int a=1, b=a++; invoke undefined behavior?
c
language-lawyer
undefined-behavior
sequence-points
asked 2013-04-25T15:39:32.713
31
votes
2
answers
What specific hash algorithm does MessageDigest.getInstance("SHA") return?
java
cryptography
undefined-behavior
asked 2013-02-15T21:23:48.830
10
votes
2
answers
Function equality and ordering in Erlang
erlang
undefined-behavior
ambiguity
asked 2012-10-25T20:52:59.827
8
votes
2
answers
Can one element of a tuple reference another?
c++
c++11
tuples
undefined-behavior
asked 2012-07-26T18:25:42.910
11
votes
1
answers
Generic char[] based storage and avoiding strict-aliasing related UB
c++
c++11
undefined-behavior
strict-aliasing
type-punning
asked 2012-06-13T08:20:48.960
10
votes
4
answers
Why is not deleting an object that has a destructor with a side effect undefined behavior in C++11?
c++
memory-leaks
c++11
destructor
undefined-behavior
asked 2012-04-02T06:04:15.137
12
votes
2
answers
Defined behaviour for expressions
c
undefined-behavior
standards-compliance
language-lawyer
asked 2012-01-29T19:30:20.310
15
votes
5
answers
Is Type name = name; ever useful in C++?
c++
variables
initialization
declaration
undefined-behavior
asked 2011-08-01T12:03:50.800
13
votes
5
answers
Assigning a reference by dereferencing a NULL pointer
c++
pointers
reference
undefined-behavior
null-pointer
asked 2011-07-16T07:40:53.553
10
votes
2
answers
Is `new (this) MyClass();` undefined behaviour after directly calling the destructor?
c++
this
undefined-behavior
placement-new
asked 2011-06-03T07:16:32.463
9
votes
4
answers
How do languages handle side effects of compound operators?
javascript
c++
c
programming-languages
undefined-behavior
asked 2011-02-14T13:56:16.450
17
votes
2
answers
Fun with uninitialized variables and compiler (GCC)
c++
gcc
initialization
undefined-behavior
asked 2011-02-02T19:43:09.347
17
votes
2
answers
What's the difference in undefined behavior between C++03 and C++11?
c++
c++11
undefined-behavior
c++03
asked 2010-12-07T17:22:41.297
1075
votes
6
answers
What are sequence points, and how do they relate to undefined behavior?
c++
undefined-behavior
c++-faq
sequence-points
asked 2010-11-14T05:37:46.333
46
votes
8
answers
const member and assignment operator. How to avoid the undefined behavior?
c++
constants
undefined-behavior
assignment-operator
asked 2010-11-09T16:42:45.020
10
votes
4
answers
const_cast and UB
c++
undefined-behavior
const-cast
asked 2010-10-28T11:55:16.573
32
votes
11
answers
Can we change the value of an object defined with const through pointers?
c
constants
undefined-behavior
asked 2010-09-27T06:30:15.613
55
votes
8
answers
Why does left shift operation invoke Undefined Behaviour when the left side operand has negative value?
c++
c
language-lawyer
undefined-behavior
bit-shift
asked 2010-09-24T07:26:22.233
35
votes
8
answers
Is this undefined C behaviour?
c
undefined-behavior
asked 2010-08-10T15:25:45.157
13
votes
9
answers
How to spot undefined behavior
c++
c
undefined-behavior
asked 2010-06-10T15:52:21.037
36
votes
9
answers
Division by zero: Undefined Behavior or Implementation Defined in C and/or C++?
c++
c
undefined-behavior
divide-by-zero
asked 2010-06-09T08:19:26.837
12
votes
6
answers
Does dereferencing deleted pointers always result in a crash?
c++
pointers
visual-c++
crash
undefined-behavior
asked 2010-05-24T10:29:53.660
30
votes
10
answers
How could pairing new[] with delete possibly lead to memory leak only?
c++
memory-management
undefined-behavior
asked 2009-12-16T09:15:12.150
39
votes
6
answers
A question about union in C - store as one type and read as another - is it implementation defined?
c
undefined
undefined-behavior
unions
asked 2009-11-28T11:54:31.480
927
votes
15
answers
Why are these constructs using pre and post-increment undefined behavior?
c
increment
undefined-behavior
operator-precedence
sequence-points
asked 2009-06-04T09:17:52.267