
Sign up to save your podcasts
Or


Welcome to Coding 101 - It's the TWiT show that gives YOU the knowledge to live in the wonderful world of the programmer. This week we are introducing our newest module, Python with Code Warrior Dale Chase!
To see all the code used in today's episode, go to Our Github Repository for Module 2
Loops (Recap)While Loops
While loops in Python work very much like they do in C#
They use some sort of counter and some sort of relational true/false statement. The while loop will continue to run as long as the statement is true. The true/false statement is pre-test, meaning that it will evaluate the statement BEFORE the loop code is executed.
Code Sample:
counter = 0
while counter < 5:
counter = counter +1
print counter
Output:
1
2
3
4
5
What is the Hearbeat?
Here is the OpenSSL Cod
(The Bug starts on Line 3972)
/* Read type and payload length first */
hbtype = *p++;
n2s(p, payload);
pl = p;
hbtype is the TYPE of data
P++ increments the pointer
p is the pointer for the payload
payload is the length of the payload
The problem is that the SENDER gets to set the "payload" length and the code never checks to see if the sent length matches the recieved length of the payload.
The Crux of the Matter:
Hosts: Fr. Robert Ballecer, SJ and Shannon Morse
Guest: Dale Chase
Bandwidth for Coding 101 is provided by CacheFly.
Sponsor:
By TWiT4
44 ratings
Welcome to Coding 101 - It's the TWiT show that gives YOU the knowledge to live in the wonderful world of the programmer. This week we are introducing our newest module, Python with Code Warrior Dale Chase!
To see all the code used in today's episode, go to Our Github Repository for Module 2
Loops (Recap)While Loops
While loops in Python work very much like they do in C#
They use some sort of counter and some sort of relational true/false statement. The while loop will continue to run as long as the statement is true. The true/false statement is pre-test, meaning that it will evaluate the statement BEFORE the loop code is executed.
Code Sample:
counter = 0
while counter < 5:
counter = counter +1
print counter
Output:
1
2
3
4
5
What is the Hearbeat?
Here is the OpenSSL Cod
(The Bug starts on Line 3972)
/* Read type and payload length first */
hbtype = *p++;
n2s(p, payload);
pl = p;
hbtype is the TYPE of data
P++ increments the pointer
p is the pointer for the payload
payload is the length of the payload
The problem is that the SENDER gets to set the "payload" length and the code never checks to see if the sent length matches the recieved length of the payload.
The Crux of the Matter:
Hosts: Fr. Robert Ballecer, SJ and Shannon Morse
Guest: Dale Chase
Bandwidth for Coding 101 is provided by CacheFly.
Sponsor:

202 Listeners

78 Listeners

355 Listeners

8 Listeners

3 Listeners

7 Listeners

3 Listeners