Your Compiler Can Make Secure Code Vulnerable
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
the size of your data that you are accessing is 17 bytes or 33 bytes, you're safe. But if it's anything else, you're suddenly vulnerable. Things that are impossible to explain. >> Seems crazy though because I mean the whole idea is write secure code, make sure your code is not open to like this attack and then it all that hardware gets stripped away. >> One way is to overheat the CPU, make it think it's about to catch on fire cuz cuz it is, and then it'll start executing this code it almost never normally executes. And it turns out there's lots of security properties of this special like privileged code in that machine check handler.
>> So in other words, you can basically hack it by like heating it up kind of thing, right? >> Exactly. You can make something unexpected happen. >> Based on this research, man, it's like if I'm a developer, what do I do? >> It definitely can feel like that. If I if I can't trust the compiler, >> if I can't trust the actual source code that I wrote, then what am I left with? >> Hey everyone, David Bumble back with a very very special guest. Chris, welcome to the show, man. >> Thank you. I'm glad to be here. Yeah, it's great to have you here because you're doing some really interesting work. So, Chris, you're very well known in the cyber security space. You've presented at Defcon and Black Hat.
You've done a whole bunch of stuff, but perhaps you can just give us a bit of background about like the tools you've created or stuff that you've done that's really cool and exciting because I've got some interesting questions to ask you. >> Yeah. Yeah. I'd love to talk about it a little bit. So, uh some of the things I I've done in the past that I've really enjoyed, I I wrote a compiler called the Mafiscator, uh which is like a single instruction C compiler. It'll take your C- source code and translate that to only a single machine instruction over and over and over. Uh I I wrote Sandsifter is a fuzzer for CPUs. Um kind of before people were doing a lot of deep CPU research. This is a way to kind of fuzz them, throw a bunch of random data at them and see what the CPU does to try to find hardware vulnerabilities.
Done some uh some other fun stuff. Recycle is a tool for taking program control flow graphs and turning those into images for reverse engineering. >> Amazing. uh and uh I I think maybe the first time I I presented at one of the big conferences was uh something I did called the memory sinkhole. It was a way of exploiting CPUs by kind of combining two two pieces that people didn't think go together in a in a kind of a new novel way to change the way the CPU is viewing memory. >> I saw a presentation that you did where you were taking a blowtorrch to a CPU. I mean what is that about?
>> Yeah. So that was that was a fun one. So, I was looking at kind of a a different way of exploiting uh CPUs where they have these things called machine check exceptions. And it's like when something really really bad happens on the CPU, uh it'll stop everything else that it's doing and start handling kind of an emergency handler. Uh and there's lots of different ways to trigger those. One way is to overheat the CPU, make it think it's about to catch on fire cuz cuz it is, and then it'll start executing this code it almost never normally executes. Uh, and it turns out there's lots of security properties of this special like privileged code in that machine check handler.
>> So, in other words, you can basically hack it by like heating it up kind of thing, right? >> Exactly. You can make something unexpected happen. Maybe you can uh cause a bit flip in in DRAM or you can cause it to uh overheat or cause some sort of other catastrophic failure. And if you do that just right, if you do it very very carefully, you can cause that exception to occur right when it shouldn't occur and you can hack the CPU that way. That's crazy. I know you're presenting here as well to uh today at the time of this recording and it's also a very interesting concept. It's something about and you can correct me and take us on the journey. It's good to write secure code, right? I should spend the time securing my code, writing good code, but you've got this I think the point you're making is that when it goes through a compiler, a lot of that's stripped out and the actual end result is not secure even though I did all this work. Is that right?
>> Yeah, that's uh that's exactly right. Um, and it's uh it's it's a little bit complicated why that why that is. And it's uh it's sort of unsettling, right? We're we're used to looking at the source code and we think, well, if I wrote secure source code, I'm in good shape. But at the end of the day, the source code is not really what runs on the CPU, right? It's it's the binary produced by something else. And what we looked at here, it was looking at kind of the C compiler and the way that works and some of the ways it can undo um some of the security checks or the secure code you thought you were you were writing. Yeah.
>> So the the reason for that is the C specification. So the Cspec is like 700 pages of just really really obtuse
rules about how uh the C programming language works and how a compiler has to operate. And the C specification uh describes something called the abstract machine. Y >> so the abstract machine is what your code really runs on. When you write code, it runs on this this totally madeup computer. It doesn't run on your CPU. It runs on this madeup computer. >> And uh the Cspec is concerned about what are the results on this madeup computer. Then the compiler can look at that. The compiler looks at what are the results supposed to be on this madeup computer. And that's the only thing I have to really give you. It's the results. So in your C code, you write something. Let's say you wanted to print out the numbers 1 through 10 is sort of the example I gave in the research.
>> So the natural way we might program that as a for loop, right? We count from 1 to 10 and every iteration we print out the index. That's that's how we code it. But according to the C specification, uh the only thing that matters is the results. So the compiler can go in and it looks at what are the results of running that. And the result is well 1 2 3 all the way up to 10 get printed out. Yeah. So the compiler just says, well, all I need to do is keep those results. And I can do that any way I want. I can do that by implementing a for loop like you wrote.
I can do that by implementing a Y loop or function recursion. Or I can just have a big print statement that just prints out 1 2 3 all the way up to 10. Doesn't really matter how the compiler implements it according to the spec. Um, the compiler gets to implement it however it wants, which means that the code that you wrote isn't necessarily what the compiler produces. the compiler can produce something wildly different and sometimes uh unexpectedly undo some of the security properties we thought we had. >> It seems crazy though because I mean the whole idea is write secure code, make sure your code is not open to like this attack and the other other attack and then all that hardware gets stripped away.
>> Right. Right. It is it is very unexpected but it's it's something that's kind of been biting people for uh for a while especially in the C programming language. So this isn't the first time that this kind of thing has come up. So like another classic example uh that that people have known about for a while is is the compiler deleting mems sets. So we've got this idea say you're writing some C code and you've got a bunch of secrets that you had to process like passwords or encryption keys and and you don't want to keep those sitting around in memory. So you clear them out you you just write a bunch of zeros to that data so that even if you've got a problem later on um at least those secrets are gone from memory. So people were were writing those clears with like a mems set or just for loop to write zeros and then they were finding when their program ran all those secrets and encryption keys those still just sat around in memory and when people try to figure out why it's because the compiler just looked at the mems set or looked at you writing a bunch of zeros to memory and the compiler said this isn't doing anything useful uh I'm just going to delete this and that's that's unsettling because when you when you look at the source it's I'm doing the right thing right I'm clearing out these secrets why isn't that actually happening in the binary. So this this layer of abstraction we kind of we kind of usually don't think about that's happening there.
>> Is this a C problem or is it a compiler problem? I mean does this occur in other languages? A bunch of questions like should I use Rust because that seems to be the recommendation. So like tell us, you know, is it a C problem, compiler problem? What is it? >> No, it's a it's a it's a great question. So what what I looked at is is C. It's a language I'm I'm pretty comfortable with and I've looked at a lot. It's obviously used in in a lot of low-level stuff and a lot of firmware and security sensitive stuff. language for a huge problem there. But it's definitely not just a problem. It it emerges in different ways in different languages, but at the end of the day, every language is going to have this this same hurdle to overcome, right? You're you're writing code, but that's not what the CPU that runs your code understands. It it understands some sort of binary, and something has to do that translation. So uh uh no matter what language you're using, the there's not a onetoone translation between the code that you wrote and what's actually able to run on the CPU.
>> So it affects Rust as well because I mean I always hear this recommendation, never use C, use Rust. >> Yeah, I think I mean I think Rust is great for a lot of things. It fixes a lot of the uh memory uh corruption problems that we we have in C and it it handles memory safety really well, but it still has to do this this translation level. And I'll be honest, I'm not as familiar with that how that translation works in in Rust, but it's a newer language and I think uh you know, C's been around for 40 years and we're just now seeing how it's biting us. So I I I suspect if we haven't found these kinds of problems in Rust yet, uh we will in the future.
>> You've written a compiler. So do I need to use a different compiler? Does someone need to create some new compiler or is it just this is the way it goes? >> So that's a really interesting facet of it. And I I think at the end of the day, it's just it's the way it goes. the compiler has to follow some sort of specification and this is the way the specification says a compiler is allowed to operate. So we actually tried to look at that in in this research to understand you know is a certain compiler more susceptible to these problems than other compilers. Should we use clang instead of GCC or something like that? Uh and and the answer was it's not just one compiler responsible.
Every single compiler will do these kinds of transformations. And that's actually expected. That's that's not necessarily a bad thing. Usually they're doing these transformations to try to make your code run faster. You know these are these are good improvements that we would normally want. It's just that they bite us in unexpected ways. So if we had a compiler that never did these things, we'd probably not have a very good compiler. So there's there's not one compiler we can switch to, pretty much everything's impacted because it's it's just something allowed by the programming language itself. >> I mean, it sounds like the sky is falling. >> THE SKY IS FALLING.
>> But based on this research, man, it's like if I'm a developer, what do I do? >> It definitely can feel like that. if I if I can't trust the compiler. Yeah. Um if I can't trust the actual source code that I wrote, then then what am I left with? So, it's it's easy to think the sky's is falling. I I think that's not the case. Uh we're not in in quite so bad a position as that. Uh and and there's a couple of different reasons for that. So, so one is the situation that we looked at uh is the compiler sort of inventing time of check, time of use vulnerabilities out of thin air. And uh it's it's kind of a pernicious problem. It appears all over the place.
in and all sorts of secure code bases where we wouldn't expect or wouldn't want this problem to appear, >> but it's a it's a pretty rare thing that the compiler does uh in in this situation. So even though it it can come up, it's it's not that common. Some of the other problems that we have with compilers like it deleting me sets or uh some of the problems people have had with undefined behavior, those are a little bit more wellstudied and and there are ways to to fix that. So um just turning on all the warnings on the compiler and really treating those warnings as problems to to fix uh can can fix a lot of the known problems with the way compilers translate source code.
Uh there's different sanitizers like address sanitizers and undefined behavior sanitizers in compilers that can try to catch some of these fringe cases where the compiler is doing a transform that you wouldn't really want and those can throw warnings or errors for you. So, uh, if we sort of follow, uh, the known best practices for a lot of these things, we can start to get a handle on some of those problems, and I think we're still always going to be left with this unsettling idea, uh, that what runs on the CPU is not the same as the code we wrote, and that's that's not going to go away. But we do have a lot of tools at our disposal for kind of taming that challenge. Chris, I'm glad you use that word fringe cases because if I am a developer, I might as well say what's the point in doing secure code, man. I might as well just put it out there. So, this is not a common thing.
Or is it? >> No, I I think it's I think it's definitely uh definitely not. And uh that's that's kind of reassuring. It's troubling thinking that maybe in 1% of cases this can occur. And that's certainly a problem for security because if if something like this, you know, in a big code base like Linux, you might have these kinds of patterns a thousand times and then 1% becomes a real problem. >> But if you're trying to write secure code, you know, 1% still still leaves, you know, if you're doing the correct thing, you're taking care of 99% of the problems that you might have. And that's still something definitely worth doing.
>> So don't give up doing secure code. We must all write code securely. >> Absolutely. And especially coming at this from an attacker's perspective, you always go after the low hanging fruit and some things just aren't worth your time. So if you've got one code base where they did nothing, that's going to be really easy to do to attack. And if you've got another codebase, well where uh you know they tried and they tried to follow best practices and do the best they could and maybe the compiler snuck something in that they weren't expecting, that's still going to be a whole lot harder to find and analyze than the person who wasn't doing anything secure to begin with. So uh absolutely. I want to thank Threat Locker for sponsoring my trip to Black Hat and Defcon as well as this video.
Really want to thank them for their support. Zero trust is something that we want to implement in 2026. Can be very difficult, however, but Threat Locker makes that process easy. When you install Threat Locker on your computer, it learns for a period of time. So, it can learn which applications you use in your day-to-day life. And then once that learning period has run, it can lock down your computer to only allow the computer to do the things that it's supposed to do. Those options can obviously be tweaked and changed. But the whole idea is zero trust. We don't trust applications by default. We don't allow applications to do whatever they want to. We lock them down and deny by
default. Applications are only allowed to do what they supposed to do and not do whatever they want to. As an example, a standard user in an enterprise doesn't need to run PowerShell scripts that copy all their data to the internet. That doesn't make sense and can be abused by attackers to excfiltrate confidential information out of an organization. So, just deny that by default. Don't allow a user to run Python scripts, PowerShell scripts, etc. to copy data to the internet or do things that a normal user shouldn't be able to do. deny that behavior by default and only allow them to do what they're supposed to do. The threat locker team has been growing exponentially the last few years. They are making a major impact in the cyber security community. You can find out more about threat locker using my link below. Again, I really want to thank Danny and the team for their continued support of my channel, allowing me to make hopefully really interesting content that you can enjoy.
>> There's no easy option to create a new compiler. We just got to live with this. I I I think that's that's absolutely the case. I mean these compilers are tremendous efforts uh you know millions of lines of of code extremely extremely complex behavior. They've evolved over the course of decades. It's it's not something you just throw a new one together uh overnight trying to solve some of these problems. And it's not like the compiler developers don't know about these problems. Uh you know both sides of this are kind of trying to work together to to solve the issues with new compiler flags, new warnings, new ways of handling memory accesses to try to get a hold of these different complex security vulnerabilities. But the problems are hard and if you know if they were easy if it was just throw together a new compiler I think somebody would have done that but uh it's it's hard and people are still working on it.
>> So Chris you've got this presentation today perhaps you can share some details for people who weren't able to attend here at black hat. >> Yeah absolutely I can uh kind of try to walk through it. So we were specifically looking at a new case of a compiler introducing these vulnerabilities into what looks like secure C code. Um it's sort of a case that people haven't looked at before. So specifically what we're looking at is the compiler introducing new time of check time of use vulnerabilities where it wouldn't look like you have one in your source code. So um just like a little background there uh the traditional time of check time of use vulnerability is like I'm trying to write some code and I need to access somebody else's data and they've got like this variable x and I want to use x. I I need to use x in my program but I want to make sure that x is like has correct values. I want to make sure it passes some check. Let's say I don't know I'm writing banking software and X is an amount to with transfer from an account. I want to make sure okay uh does this person have enough money in their account. So I'm going to take X and I'm going to make sure that X is less than what they have in their account. And then if it is then I'm going to transfer X out of the account. Now the problem is that if X is some other application's data, X can change between the time I checked it and the time I used it. and I and you know my first check said well they wanted to transfer 50 bucks it it passed the check and then when I transfer that money now X says it's $10 million and I transfer that money. So that's like this classic time of check time of use vulnerability.
So for for secure coding the way we're we're taught to fix that vulnerability is if we don't trust X we we copy it. We we snapshot it into our own program. So I'm going to take X and I'm going to copy that into my own variable Y. And now from now on instead of using this untrusted data I'm going to use my own copy Y. So I'll check you know is Y less than what the person has in their account. And if it is I'm going to transfer out Y. Now it doesn't matter if they changed X over on their side. I made sure that um my copy was was valid and and passed the correct checks and I used it the way it was. So what we looked at in this presentation was sort of a a esoteric unexpected compiler optimization where the compiler can look at what you did and it looks like you did the correct thing from a secure perspective. You copied the state over into your own program and then you checked the value and then you used it.
The compiler can look at that and it can say that check that you did that was kind of a waste of time. That's not efficient. or uh so instead of doing this copy into your own program, I'm going to delete your copy and I'm going to give you back that insecure or untrusted data that you were trying to avoid to begin with. So it'll take what you wrote, which is snapshot the data and then check it and then use it and it'll delete that snapshot and just replace that with check the untrusted data and use the untrusted data and you're back to the exact vulnerability you were trying to avoid.
>> Wow. Chris, in your presentation, I'm assuming it's not very high level. you've gone into some detail. So perhaps you can share some of the like the nitty-gritty with us. >> Absolutely. Um so the the hard question to answer uh is when can that happen? So we we sort of look at the C specification. Yeah. >> And the Cspec says that this is an allowed transformation. A compiler is actually allowed to take what look like your secure code and translate that into a time of check, time of use vulnerability. And that's that's kind of interesting from like an academic perspective that that okay, a compiler is allowed to do this. But the the hard question that we wanted to answer is when does this actually occur? Like will a compiler actually do this? So we we tried to tease out different situations where a compiler will actually delete that snapshot that that made you secure in the first place. So the the first situation we found where a compiler will do that is with what's called register pressure. So when a compiler is taking your source code and translating it into a binary, it needs to use CPU registers to track all the data you're using. And eventually a compiler will run out of CPU registers to use. It'll it'll be using all the registers to track different data in your program. And if the compiler decides, hey, all the registers are in use. That's one of these situations where the compiler will decide copying this data over into your your local variable just doesn't make sense anymore. I don't have any registers to use to help you with that, and so I'm going to reread that untrusted data you were trying to avoid.
So that was sort of the first situation where we were able to force a or show that a compiler will actually do this transformation, will actually um turn secure code into insecure code. And then we tried to explore sort of all the different French cases where that can happen. And we found all sorts of different wild situations where it can depend on like if you're using a strct in your code, a structure, uh it can depend on the exact layout in the structure. Like if you've got two fields in your structure, the compiler might compile those in a secure way one time, but then if you flip the order of those fields, for whatever reason, the compiler will decide now it's going to emit a time of check, time of use vulnerability. We found weird situations like if the size of your data uh was congruent modulo 16 to the the number one. So if you the size of your data that you were accessing is 17 bytes or 33 bytes, you're safe. But if it's anything else, you're suddenly vulnerable. things that are impossible to explain. Uh and and eventually the conclusion we had to come to is that it's it's not like when the compiler is looking at your code, there's not any like one point where it's like, okay, I'm going to introduce a time of check time of use vulnerability here. Uh instead, it's all these interacting layers of the compiler. And every layer looks like it's making the correct choices at at its point in time. But when you look at the interaction of all these layers and how they feed back into each other, then all of a sudden what comes out is vulnerable code. And the troubling part of all of that, kind of the big conclusion from trying to characterize when this happens was there's there's no single like rule of thumb. I I can't just say, well, I need to make sure my struct size is 17 and I'll be safe. Uh I can't just say if I compile with GCC 14, I'm safe. uh there's there's no single thing that we can point to uh where you're safe or vulnerable. Uh and these these transformations crop up in entirely unexpected situations.
>> Man, it sounds scary because what do I do? How is there anything I can do or it's just a fact of life? >> Yeah, it and it is scary because um it's it's just trivial things that you would never expect to to bite you. um you know you you might even you know be compiling and you check hey the output is safe. I I actually dove into the binary and I made sure that it doesn't have this time of check time of use vulnerability and I'm and I'm good. But then you upgrade your compiler and all of a sudden it's doing different optimizations than it was before even with the same optimization flags and now it emits a time of check time of use vulnerability that it didn't have before. uh you could downgrade your compiler and find all of a sudden that uh emits the same vulnerability that you were trying to avoid. Uh so so we're not in a good position right now for for this specific vulnerability. We don't really have good checks that the compiler can do right now. We don't have a good way to analyze the binaries right now. The the good news is that this is kind of a French case. Uh going back to one of the earlier questions, should we just not write secure code? This just doesn't happen that often. Uh it's not every time you try to write a a good time of check time of use vulnerability that the compiler is just going to drop it. Uh we actually had a lot of trouble trying to get a compiler to do this.
>> Oh, that's good news. >> Yes. Uh so when a compiler did it, it was very surprising and unexpected. And if you're an attacker and you're just trying to look at the breadth of what's out there, it's like, well, I can go to any of the six million lines of code in Linux and try to find one of these situations. But if you're a coder, uh I think you can take some comfort in in knowing that this is extremely rare behavior for a compiler. And then of course this is just sort of looking at one new fringe case where a compiler can do this. Some of the things that have been around for longer like compilers deleting uh different security checks you were trying to do or compilers u making use of undefined behavior to do unexpected things. Those have been a lot more wellstudied and those have better better solutions to them. So it's not every transformation that we have to worry about for a compiler, but there are still a lot of things out there that are sort of unknowns.
>> Okay, so this is it sounds complicated. It sounds like a fringe case. What kind of attacker would be able to leverage this or is it just the compiler making this thing that's insecure? So I'm not saying a script kitty, but I mean like how intelligent, how experienced does an attacker have to be to leverage this? It >> it's a great question. So, the good news here, I think, is that it's just as hard for an attacker as it is for a defender. Okay. Part of the problem with this uh this specific kind of vulnerability is it is it comes up really rarely. That's what makes it hard. Um it's what makes it unsettling if you're a programmer.
You don't know is the code I'm trying to write securely going to come out secure or not. But that that also makes it hard for an attacker, right? Um they can go to what like what we did. We went to all these different open- source projects and tried to find where did they have this pattern where they could turn into vulnerable uh binaries from the compiler. So an attacker would do that and then try to find all the places where it turns into a vulnerable binary. But then the attacker has the same problem that a defender does. Is the binary vulnerable or not? That's that's a hard problem to answer because then you've got to start dissecting the binary. You have to have some way to automatically reverse engineer that because you're not going to sit there by hand. If this is a really rare problem that occurs 1% of the time, you don't want to go out and by hand pull down 10,000 binaries and look at which 1% had this issue. You need to find some way to automate that. And that's a hard problem to automate. And that's that's why the the fix is hard and that's why the attack is hard. So, uh I think this is a an extremely complicated attack for somebody to pull off.
>> That's good news. But elephant in the room, AI, won't they make it easier for someone to to to leverage this? Yeah, I mean that that's where it certainly gets really interesting. Um that's that's the approach that we took in trying to analyze this vulnerability. Um because we're concerned about these very specific patterns of code where they do a snapshot check use. We want to figure out where does that pattern exist? Uh so from an attacking perspective that became really easy. Something I could not have done by hand. I I just had AI review 500 million lines of open- source projects and spent a hundred hours on it. uh and it turns out 300 of these patterns, something I I I never would have been able to find by by hand. So AI absolutely makes it easier. Um but but it works both ways. It makes it easier from a defender point of view, too. From a defender perspective, especially if you're if you're, you know, a regular programmer, uh you don't have time to worry about, you know, exactly every line that I wrote, what are all the different fringe security cases I have to consider? Well, the good news is, uh AI can help with that. And just like it made it easy for an attacker, it also makes it much easier for a defender now to go through and find these kinds of issues and suggest the fixes for them.
>> Which AI did you use? Any recommendations? I mean, not everyone has access to mythos and stuff like that. So, what do you what can a normal person use? What do you recommend? Open source, what do you Yeah. So for this I I found Claude Opus was working extremely well. The the type of analysis it had to do here. Uh wasn't something you need a mythos level capability to uh to to to figure out especially given
that we kind of know what the patterns of code look like. uh we can give opus uh enough guidelines in how to find these and how to analyze these that I think uh most of the existing frontier models that any anybody would have access to uh can do a a fantastic job of finding most of the problems that we know about as far as how a compiler might sort of undermine your attempts to write good code. Question though is okay I try and use claude I try and use chat GPT or whatever they have guardrails. So, a lot of people have complained that when they try and ask AI to help them as a defender, it thinks you're an attacker and won't help you. Is it is it something that you had to do to get around the guardrails or is it just it allowed you to do this because you're not doing it as an attacker or because that's a you know, something people hit when they try and do it?
>> Yeah, it's it's certainly a hard problem. Um, part of the reason I I didn't use the uh the newer models from Flawed Fable would would not let me do this. wouldn't even ask of time
which I understand the the guard rails and sort of the uncertainties with some of the newer models but it makes it just as hard from a defender perspective. So from my experience with this work uh uh opus was was willing to sort of work with me on the problem especially from a defending point of view. It's not trying to weaponize anything here. It's trying to find, you know, where did I write code that was not correct and how do I fix it? And that's uh at at least different enough from how do I exploit this actual issue that uh some of the models are were able to work with that.
But uh I can't promise that they're going to work with every situation that this type of situation might come up. So it's a pro. It's a hard problem. >> Yeah, it's fortunately it's fringe cases. So that's good. Recommendations before we wrap up. Um, is it like get an AI to check my code? What do I do as a developer to try and make things better? >> Yeah. So, um, certainly for for this problem that's sort of a brand new thing and there's not good solutions for it right now. Getting an AI to help analyze for this problem works really well. A lot of the other problems that we have though with uh compiler sort of undermining what the programmer wanted, those are more well understood and those have pretty decent solutions already.
There's lots of warnings that you can enable in the compiler where even though the compiler is trying to transform your code in a way that you won't like, it can also realize it's doing that and it can warn you about it. There's different sanitizers that you can able at the compiler level so that a lot of the things that are biting people right now like undefined behavior in C where the compiler can go in and change things underneath you in unexpected ways. Uh we have ways of catching that now. So just sort of turning on some of those existing defenses and really sticking to those uh making sure that when you ship a binary that's the exact same binary you were testing you know you didn't test everything on a debug build where there was no optimization and then switch to an optimized build and then go ahead and ship that with no testing. Uh you know the optimization pass is where compilers will really bite you with these transformations. So making sure you're checking what you're shipping.
Uh, I think there's lots of good sort of known best practices that can help uh help with this situation. >> I want to be like you. Someone who's watching is inspired by what you're doing, wants to learn to do what you do. Any recommendations, advice, things I should study, what what should I do to become like you? >> I wish I had a magic answer for that. Uh, I I think sort of how I got to where I was was just kind of keep poking at anything, anything that sparks your curiosity, uh, dive into that even if it seems like a waste of time. I kind of think of it as approaching any problem that you have with sort of a reckless curiosity and going down every rabbit hole that you find or any question that nobody else is asking, that's the thing to pursue. So, uh really just anytime you're curious about something, that's the right thing to dive into and and learn more. And I I think that's sort of how I found myself where I am. I love this sort of this work and this sort of research. Uh and I I think it all just stems from having that initial curiosity and not being afraid to pursue it.
>> Chris, thanks so much for sharing. We're out of time. Really appreciate it, man. Thanks so much.





